dvbsrc: drop unneeded polling step on _tune_fe()
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Fri, 29 Apr 2016 18:18:53 +0000 (11:18 -0700)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Fri, 29 Apr 2016 23:01:23 +0000 (16:01 -0700)
Additional waiting was not needed. Specially considering
it came after a successful READ_STATUS ioctl and was
followed by an EINTR-resilent retry.

sys/dvb/gstdvbsrc.c

index 4c1cdfa..4a4b00f 100644 (file)
@@ -2202,7 +2202,7 @@ gst_dvbsrc_tune_fe (GstDvbSrc * object)
   fe_status_t status;
   struct dtv_properties props;
   struct dtv_property dvb_prop[NUM_DTV_PROPS];
-  GstClockTimeDiff elapsed_time, timeout_step = 500 * GST_MSECOND;
+  GstClockTimeDiff elapsed_time;
   GstClockTime start;
   gint err;
 
@@ -2292,8 +2292,6 @@ gst_dvbsrc_tune_fe (GstDvbSrc * object)
   start = gst_util_get_timestamp ();
 
   while (!(status & FE_HAS_LOCK) && elapsed_time <= object->tuning_timeout) {
-    if (gst_poll_wait (poll_set, timeout_step) == -1)
-      goto fail_with_signal;
     LOOP_WHILE_EINTR (err, ioctl (object->fd_frontend, FE_READ_STATUS,
             &status));
     if (err) {