From 94ae04f098b363091180997bc670ff055f3f4489 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 10 Jun 2011 17:32:48 +0200 Subject: [PATCH] basesrc: use new _check_reconfigure() method --- libs/gst/base/gstbasesrc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 6b0165cb9e..58e28bd2de 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -2341,19 +2341,13 @@ gst_base_src_loop (GstPad * pad) gboolean eos; guint blocksize; GList *pending_events = NULL, *tmp; - gboolean reconfigure; eos = FALSE; src = GST_BASE_SRC (GST_OBJECT_PARENT (pad)); - GST_OBJECT_LOCK (pad); - reconfigure = GST_PAD_NEEDS_RECONFIGURE (pad); - GST_OBJECT_FLAG_UNSET (pad, GST_PAD_NEED_RECONFIGURE); - GST_OBJECT_UNLOCK (pad); - /* check if we need to renegotiate */ - if (reconfigure) { + if (gst_pad_check_reconfigure (pad)) { if (!gst_base_src_negotiate (src)) GST_DEBUG_OBJECT (src, "Failed to renegotiate"); }