After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 654483 - Multiple attempts to tune a DVB frontend
Multiple attempts to tune a DVB frontend
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 654479
Blocks:
 
 
Reported: 2011-07-12 15:58 UTC by Tony Houghton
Modified: 2014-06-11 00:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Only make one attempt to tune a DVB frontend. (14.45 KB, patch)
2011-07-12 15:59 UTC, Tony Houghton
none Details | Review
Only make one attempt to tune DVB frontend (15.08 KB, patch)
2011-07-13 18:16 UTC, Tony Houghton
rejected Details | Review

Description Tony Houghton 2011-07-12 15:58:22 UTC
If dvbsrc fails to tune a DVB frontend it retries up to a total of five attempts. I don't think this is useful because most failures won't be cleared by trying again. If it is useful in some circumstances, application writers can easily make multiple attempts where necessary instead of having it hard wired in to the library. The biggest disadvantage of these forced retries is in DVB-T scanning where multiple frequencies are tried until a working one is found. Trying all the bad frequencies up to five times makes the process painfully slow.

Here's a patch to remove the extra retries. It should be applied after my s2api patch from Bug 654479.
Comment 1 Tony Houghton 2011-07-12 15:59:22 UTC
Created attachment 191819 [details] [review]
Only make one attempt to tune a DVB frontend.
Comment 2 Sebastian Dröge (slomo) 2011-07-13 06:35:13 UTC
Please attach the patch in "git format-patch" style. It makes applying it easier and will include your name, mail address and commit message.
Comment 3 Tony Houghton 2011-07-13 18:16:01 UTC
Created attachment 191904 [details] [review]
Only make one attempt to tune DVB frontend

Now created with git format-patch.
Comment 4 Vincent Penquerc'h 2011-11-08 11:50:47 UTC
How about making that constant 5 attempts an object property, defaulting to 1 ?
This would allow the user code to do the choice, while making the patch simpler too (at least without all the whitespace change).
Comment 5 Reynaldo H. Verdejo Pinochet 2014-06-11 00:42:05 UTC
The tuning process in now different and it's been controlled by
a seteable timeout property. Tuning & locking is an slow process,
how long does it take for a particular frontend to perform depends
on several factors, signal quality (CNR / SRN), power and reciver
sensibility among others. Retrying a few times is often needed.

The above been said though, harcoded sleep() calls and dumb
retries had been replaced by a polling logic, this allows for
a far quicker tuning approach and early bail out in case of
irrecoverable failures.

I'm closing this bug and rejecting this patch on these grounds.