summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2008-12-23 16:32:05 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2008-12-23 16:32:05 +0000
commit363a7b761c7bad498745488fbc20676b96e5a5a3 (patch)
tree8ea486a82bb4a4497b0bdd8a6e9118071751cd74 /sys
parentef7d946e23b14c3837c2b414c0b9684b3f79a5b4 (diff)
downloadgst-plugins-bad-363a7b761c7bad498745488fbc20676b96e5a5a3.tar.gz
gst-plugins-bad-363a7b761c7bad498745488fbc20676b96e5a5a3.tar.bz2
gst-plugins-bad-363a7b761c7bad498745488fbc20676b96e5a5a3.zip
sys/dvb/gstdvbsrc.c: With constant read failures, make sure we exit the read_device method.
Original commit message from CVS: * sys/dvb/gstdvbsrc.c: With constant read failures, make sure we exit the read_device method.
Diffstat (limited to 'sys')
-rw-r--r--sys/dvb/gstdvbsrc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c
index 6a57029a..56051c72 100644
--- a/sys/dvb/gstdvbsrc.c
+++ b/sys/dvb/gstdvbsrc.c
@@ -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;
+ };
}
}