mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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:
parent
4b11ced2eb
commit
dbad02437c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue