mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
Increased the length of time for tuning in gstdvbsrc.c.
Some devices take a while to tune and 500ms was too short to detect successful tuning. As well as waiting for 5 seconds each 100ms the status is checked and the loop is broken out of when tuning has suceeded.
This commit is contained in:
parent
2db8d6ea0b
commit
b9890a2bf7
1 changed files with 3 additions and 1 deletions
|
@ -1326,13 +1326,15 @@ gst_dvbsrc_tune (GstDvbSrc * object)
|
||||||
#endif
|
#endif
|
||||||
g_warning ("Error tuning channel: %s", strerror (errno));
|
g_warning ("Error tuning channel: %s", strerror (errno));
|
||||||
}
|
}
|
||||||
for (i = 0; i < 5; i++) {
|
for (i = 0; i < 50; i++) {
|
||||||
usleep (100000);
|
usleep (100000);
|
||||||
if (ioctl (object->fd_frontend, FE_READ_STATUS, &status) == -1) {
|
if (ioctl (object->fd_frontend, FE_READ_STATUS, &status) == -1) {
|
||||||
perror ("FE_READ_STATUS");
|
perror ("FE_READ_STATUS");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
GST_LOG_OBJECT (object, "status == 0x%02x", status);
|
GST_LOG_OBJECT (object, "status == 0x%02x", status);
|
||||||
|
if (status & FE_HAS_LOCK)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (status & FE_HAS_LOCK)
|
if (status & FE_HAS_LOCK)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue