mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
dvbsrc: drop unneeded polling step on _tune_fe()
Additional waiting was not needed. Specially considering it came after a successful READ_STATUS ioctl and was followed by an EINTR-resilent retry.
This commit is contained in:
parent
1b1beded51
commit
b5663e4f53
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue