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:
Niv Sardi 2013-01-17 21:43:25 -03:00 committed by Wim Taymans
parent c0926dc7cc
commit 4adee0dee2

View file

@ -2577,8 +2577,10 @@ 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);