sys/dvb/gstdvbsrc.c: With constant read failures, make sure we exit the read_device...
authorZaheer Abbas Merali <zaheerabbas@merali.org>
Tue, 23 Dec 2008 16:32:05 +0000 (16:32 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Tue, 23 Dec 2008 16:32:05 +0000 (16:32 +0000)
Original commit message from CVS:
* sys/dvb/gstdvbsrc.c:
With constant read failures, make sure we exit the read_device
method.

ChangeLog
sys/dvb/gstdvbsrc.c

index 913b48d852965dcc73087d6474de81be0a2816ac..7057236fc8a979571e00996e24978b623d50c63b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-23  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
+
+       * sys/dvb/gstdvbsrc.c:
+       With constant read failures, make sure we exit the read_device
+       method.
+
 2008-12-23  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
 
        * sys/dvb/gstdvbsrc.c:
index 6a57029a42e3e0e9e0f9980d530e25cf9875d446..56051c722c2275772b33e3b0bc36ded5d7bc7d10 100644 (file)
@@ -918,7 +918,10 @@ read_device (int fd, int adapter_number, int frontend_number, int size,
 
       }
     } else if (errno == -EINTR) {       // poll interrupted
-      ;
+      if (attempts % 50 == 0) {
+        gst_buffer_unref (buf);
+        return NULL;
+      };
     }
 
   }