From dbad02437c73b4bdb79cac5b8fcc738181db70f0 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 20 Jan 2012 10:42:21 +0000 Subject: [PATCH] rsnaudiomunge: keep the object ref longer Since we do not get a ref to the pad, I'm not certain it's safe to drop the object and use the pad later, so hold the object ref till we're done with the pad. --- ext/resindvd/rsnaudiomunge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/resindvd/rsnaudiomunge.c b/ext/resindvd/rsnaudiomunge.c index 94cf7b1503..678bd1e2ea 100644 --- a/ext/resindvd/rsnaudiomunge.c +++ b/ext/resindvd/rsnaudiomunge.c @@ -154,9 +154,9 @@ rsn_audiomunge_set_caps (GstPad * pad, GstCaps * caps) g_return_val_if_fail (munge != NULL, FALSE); otherpad = (pad == munge->srcpad) ? munge->sinkpad : munge->srcpad; - gst_object_unref (munge); ret = gst_pad_set_caps (otherpad, caps); + gst_object_unref (munge); return ret; }