dvbsrc: handle EINTR from poll
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Feb 2013 16:34:28 +0000 (17:34 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Feb 2013 16:39:15 +0000 (17:39 +0100)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=693212

sys/dvb/gstdvbsrc.c

index 8d60029..48d037b 100644 (file)
@@ -944,6 +944,8 @@ gst_dvbsrc_read_device (GstDvbSrc * object, int size, GstBuffer ** buffer)
     if (G_UNLIKELY (ret_val < 0)) {
       if (errno == EBUSY)
         goto stopped;
+      else if (errno == EINTR)
+        continue;
       else
         goto select_error;
     } else if (G_UNLIKELY (ret_val == 0)) {