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 672444 - EPG doesn't restart after failure
EPG doesn't restart after failure
Status: RESOLVED FIXED
Product: dvb-daemon
Classification: Other
Component: EPG
unspecified
Other Linux
: Normal normal
: ---
Assigned To: dvb-daemon-maint
dvb-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-03-20 09:09 UTC by Michał Sawicz
Modified: 2012-03-23 19:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Reset EPGScanner on error instead of stopping it (1.29 KB, patch)
2012-03-20 10:07 UTC, Michał Sawicz
needs-work Details | Review
Make the epg scanner more robust (4.20 KB, patch)
2012-03-20 22:18 UTC, Michał Sawicz
committed Details | Review

Description Michał Sawicz 2012-03-20 09:09:31 UTC
Whenever the EPG fails to finish for some reason (even reception error), it will not run again until the group is "taken over" and freed again by recording or playback.
Comment 1 Michał Sawicz 2012-03-20 10:07:03 UTC
Created attachment 210158 [details] [review]
Reset EPGScanner on error instead of stopping it
Comment 2 Sebastian Pölsterl 2012-03-20 21:01:21 UTC
Comment on attachment 210158 [details] [review]
Reset EPGScanner on error instead of stopping it

Calling reset will clear the channels queue and stop monitoring the bus, that's not want you want. You want to resume scanning with the next channel. I believe calling neither stop nor reset should do it, because scanning of the next channel is still in queue. Try with removing the call to reset.
Comment 3 Michał Sawicz 2012-03-20 21:07:42 UTC
Sure, that could work even better, I think the pipeline needs resetting, though, when an error caused it to stop (dvb-read-failure not so).
Comment 4 Michał Sawicz 2012-03-20 21:14:31 UTC
My thinking was that resetting would be ok so as to cater that there was, indeed, a failure (a pipeline failure, that is - dvb-read-failure can probably be simply ignored), and trying over and over again might not help, but resetting might.

I'll go with what you think is best, though.
Comment 5 Sebastian Pölsterl 2012-03-20 21:45:42 UTC
Good point, with an error we are not able to recover and can re-use the current pipeline. This means we have to create a new pipeline in this case. That's basically the pipeline part in reset plus the one in the start method.
Comment 6 Michał Sawicz 2012-03-20 22:18:07 UTC
Created attachment 210205 [details] [review]
Make the epg scanner more robust
Comment 7 Sebastian Pölsterl 2012-03-23 19:48:07 UTC
Review of attachment 210205 [details] [review]:

Thanks a lot, committed to master.