mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
basesrc: Don't send error if negotiate fails because we are flushing
Negotiation may be aborted by a flush from another thread that need to stop the task (i.e. seek). Check that case and silently pause the task. https://bugzilla.gnome.org/show_bug.cgi?id=696357
This commit is contained in:
parent
a76885f333
commit
253035d395
1 changed files with 4 additions and 1 deletions
|
@ -2581,6 +2581,9 @@ gst_base_src_loop (GstPad * pad)
|
||||||
if (gst_pad_check_reconfigure (pad)) {
|
if (gst_pad_check_reconfigure (pad)) {
|
||||||
if (!gst_base_src_negotiate (src)) {
|
if (!gst_base_src_negotiate (src)) {
|
||||||
gst_pad_mark_reconfigure (pad);
|
gst_pad_mark_reconfigure (pad);
|
||||||
|
if (GST_PAD_IS_FLUSHING (pad))
|
||||||
|
goto flushing;
|
||||||
|
else
|
||||||
goto negotiate_failed;
|
goto negotiate_failed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue