GNOME Bugzilla – Bug 607747
[dvbsrc] Pipeline does not stop when reception is very bad
Last modified: 2010-01-27 11:11:39 UTC
I cannot stop a pipeline when reception is very bad (ex: bad weather) To reproduce the problem (use-case with a dvb-s card): 1) launch the following pipeline : gst-launch dvbsrc frequency=12226000 polarity=H symbol-rate=27500 ! fakesink 2) Simulate a bad reception: unplug the dvb-s cable 3) stop the pipeline (CTRL+C) result: pipeline does not stop. expected: pipeline should stop, event if the dvb-s signal is not present.
Created attachment 151997 [details] [review] proposed patch When the card is not locked (due to signal loss), there is an infinite loop into read_device function. Proposed patch : - use an flag to stop the loop when required - set the flag in the gst_dvb_src_unlock function.
Created attachment 152321 [details] [review] second proposed patch with unlock_stop function
commit 39ab05e02462634807fc59d36c45234d6b3319f6 Author: Vincent GENIEUX <vgenieux at free.fr> Date: Wed Jan 27 12:08:48 2010 +0100 dvbsrc: fix element shutdown on bad reception When we have a bad reception, avoid going into an infinite loop by setting a shutdown flag when shutting down. Fixes #607747