From 0d449400763ab8d7fcc3620a6e700ecef41146d9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 13 Jun 2011 12:15:33 +0200 Subject: [PATCH] theoradec: use _check_reconfigure method --- ext/theora/gsttheoradec.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 15462b040a..eadf88974f 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -1111,14 +1111,8 @@ theora_handle_image (GstTheoraDec * dec, th_ycbcr_buffer buf, GstBuffer ** out) guint8 *dest, *src; gsize size; guint8 *data; - gboolean reconfigure; - GST_OBJECT_LOCK (dec->srcpad); - reconfigure = GST_PAD_NEEDS_RECONFIGURE (dec->srcpad); - GST_OBJECT_FLAG_UNSET (dec->srcpad, GST_PAD_NEED_RECONFIGURE); - GST_OBJECT_UNLOCK (dec->srcpad); - - if (reconfigure) { + if (gst_pad_check_reconfigure (dec->srcpad)) { GstCaps *caps; caps = gst_pad_get_current_caps (dec->srcpad);