summaryrefslogtreecommitdiff
path: root/ext/resindvd
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-01-20 10:42:21 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-01-23 11:04:26 +0000
commitdbad02437c73b4bdb79cac5b8fcc738181db70f0 (patch)
tree75a5ba830b4aa030932db4cc1b2ae32a0a9e9bc5 /ext/resindvd
parent4b11ced2eb695a1f0da33f4aa9b3613d4df98cb4 (diff)
downloadgstreamer-plugins-bad-dbad02437c73b4bdb79cac5b8fcc738181db70f0.tar.gz
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.
Diffstat (limited to 'ext/resindvd')
-rw-r--r--ext/resindvd/rsnaudiomunge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/resindvd/rsnaudiomunge.c b/ext/resindvd/rsnaudiomunge.c
index 94cf7b150..678bd1e2e 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;
}