mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
basesrc: set NEED_RECONFIGURE flag if negotiate fails
When negotiation fails, mark the pad as needing a reconfigure again so that it gets picked up again next time. Signed-off-by: Niv Sardi <xaiki@evilgiggle.com> Fixes https://bugzilla.gnome.org/show_bug.cgi?id=691986
This commit is contained in:
parent
c0926dc7cc
commit
4adee0dee2
1 changed files with 3 additions and 1 deletions
|
@ -2577,9 +2577,11 @@ gst_base_src_loop (GstPad * pad)
|
|||
|
||||
/* check if we need to renegotiate */
|
||||
if (gst_pad_check_reconfigure (pad)) {
|
||||
if (!gst_base_src_negotiate (src))
|
||||
if (!gst_base_src_negotiate (src)) {
|
||||
gst_pad_mark_reconfigure (pad);
|
||||
goto not_negotiated;
|
||||
}
|
||||
}
|
||||
|
||||
GST_LIVE_LOCK (src);
|
||||
|
||||
|
|
Loading…
Reference in a new issue