mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
basesrc: call _stop when start failed
When we failed to complete the start, call stop again. This makes sure that all successfull calls to _start are paired with a _stop. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=687845
This commit is contained in:
parent
e58dabc750
commit
6e6fc159a7
1 changed files with 2 additions and 2 deletions
|
@ -3265,7 +3265,7 @@ seek_failed:
|
|||
{
|
||||
GST_PAD_STREAM_UNLOCK (basesrc->srcpad);
|
||||
GST_ERROR_OBJECT (basesrc, "Failed to perform initial seek");
|
||||
gst_base_src_set_flushing (basesrc, TRUE, FALSE, NULL);
|
||||
gst_base_src_stop (basesrc);
|
||||
if (event)
|
||||
gst_event_unref (event);
|
||||
ret = GST_FLOW_ERROR;
|
||||
|
@ -3274,7 +3274,7 @@ seek_failed:
|
|||
no_get_range:
|
||||
{
|
||||
GST_PAD_STREAM_UNLOCK (basesrc->srcpad);
|
||||
gst_base_src_set_flushing (basesrc, TRUE, FALSE, NULL);
|
||||
gst_base_src_stop (basesrc);
|
||||
GST_ERROR_OBJECT (basesrc, "Cannot operate in pull mode, stopping");
|
||||
ret = GST_FLOW_ERROR;
|
||||
goto error;
|
||||
|
|
Loading…
Reference in a new issue