mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 07:52:36 +00:00
x264enc: Copy the template caps, it's not allowed to increase the refcount of const caps
This commit is contained in:
parent
0bc0a31c96
commit
27b0ee204c
1 changed files with 1 additions and 1 deletions
|
@ -1498,7 +1498,7 @@ gst_x264_enc_sink_get_caps (GstPad * pad)
|
||||||
gst_object_unref (peer);
|
gst_object_unref (peer);
|
||||||
peer = NULL;
|
peer = NULL;
|
||||||
} else {
|
} else {
|
||||||
caps = gst_caps_ref (gst_pad_get_pad_template_caps (pad));
|
caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_object_unref (encoder);
|
gst_object_unref (encoder);
|
||||||
|
|
Loading…
Reference in a new issue