dvr: Don't allow transport to start if adapter is already running
This commit is contained in:
parent
51a9663501
commit
c0350c621a
1 changed files with 3 additions and 0 deletions
|
@ -174,6 +174,9 @@ v4l_transport_start(th_transport_t *t, unsigned int weight, int status,
|
||||||
v4l2_std_id std = 0xff;
|
v4l2_std_id std = 0xff;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
if(va->va_current_transport != NULL)
|
||||||
|
return 1; // Adapter busy
|
||||||
|
|
||||||
fd = open(va->va_path, O_RDWR | O_NONBLOCK);
|
fd = open(va->va_path, O_RDWR | O_NONBLOCK);
|
||||||
if(fd == -1) {
|
if(fd == -1) {
|
||||||
tvhlog(LOG_ERR, "v4l",
|
tvhlog(LOG_ERR, "v4l",
|
||||||
|
|
Loading…
Add table
Reference in a new issue