mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
transcodebin: fix caps NULL unref
gst_pad_get_current_caps() can return a NULL pointer which was raisin a CRITICAL.
This commit is contained in:
parent
040077dbc8
commit
b5a28df0f3
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstTranscodeBin * self)
|
||||||
"sink-pad", GST_TYPE_PAD, sinkpad,
|
"sink-pad", GST_TYPE_PAD, sinkpad,
|
||||||
"sink-caps", GST_TYPE_CAPS, othercaps, NULL));
|
"sink-caps", GST_TYPE_CAPS, othercaps, NULL));
|
||||||
|
|
||||||
gst_caps_unref (caps);
|
gst_clear_caps (&caps);
|
||||||
if (othercaps)
|
if (othercaps)
|
||||||
gst_caps_unref (othercaps);
|
gst_caps_unref (othercaps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue