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.
This commit is contained in:
Vincent Penquerc'h 2012-01-20 10:42:21 +00:00
parent 4b11ced2eb
commit dbad02437c

View file

@ -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;
}