dvr: Don't allow transport to start if adapter is already running

This commit is contained in:
Andreas Öman 2009-09-14 19:10:14 +00:00
parent 51a9663501
commit c0350c621a

View file

@ -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",