From 4adee0dee248720180fe9fb320b044dd6dfd3450 Mon Sep 17 00:00:00 2001 From: Niv Sardi Date: Thu, 17 Jan 2013 21:43:25 -0300 Subject: [PATCH] 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 --- libs/gst/base/gstbasesrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.7.4