From c0350c621a803f0d562bc7eec280499cb0d07197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Mon, 14 Sep 2009 19:10:14 +0000 Subject: [PATCH] dvr: Don't allow transport to start if adapter is already running --- src/v4l.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/v4l.c b/src/v4l.c index 4e6a0a7d..ed66f4b2 100644 --- a/src/v4l.c +++ b/src/v4l.c @@ -174,6 +174,9 @@ v4l_transport_start(th_transport_t *t, unsigned int weight, int status, v4l2_std_id std = 0xff; int fd; + if(va->va_current_transport != NULL) + return 1; // Adapter busy + fd = open(va->va_path, O_RDWR | O_NONBLOCK); if(fd == -1) { tvhlog(LOG_ERR, "v4l",