From: Niv Sardi Date: Fri, 18 Jan 2013 00:43:25 +0000 (-0300) Subject: basesrc: set NEED_RECONFIGURE flag if negotiate fails X-Git-Tag: 1.1.1~311 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4adee0dee248720180fe9fb320b044dd6dfd3450;p=platform%2Fupstream%2Fgstreamer.git 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 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=691986 --- diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index acc665f..b83762c 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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);