mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
vaapisink: Fix capsfeature memory leak
caps feature allocated is not being freeing in some cases https://bugzilla.gnome.org/show_bug.cgi?id=762111
This commit is contained in:
parent
734b8bad8f
commit
b54ac96c27
1 changed files with 3 additions and 4 deletions
|
@ -1212,10 +1212,6 @@ gst_vaapisink_get_caps_impl (GstBaseSink * base_sink)
|
||||||
"," GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION,
|
"," GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION,
|
||||||
"{ ENCODED, NV12, I420, YV12 }");
|
"{ ENCODED, NV12, I420, YV12 }");
|
||||||
|
|
||||||
GstCapsFeatures *const features =
|
|
||||||
gst_caps_features_new
|
|
||||||
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, NULL);
|
|
||||||
|
|
||||||
out_caps = gst_caps_from_string (surface_caps_str);
|
out_caps = gst_caps_from_string (surface_caps_str);
|
||||||
|
|
||||||
if (GST_VAAPI_PLUGIN_BASE_DISPLAY (sink)) {
|
if (GST_VAAPI_PLUGIN_BASE_DISPLAY (sink)) {
|
||||||
|
@ -1224,6 +1220,9 @@ gst_vaapisink_get_caps_impl (GstBaseSink * base_sink)
|
||||||
(sink));
|
(sink));
|
||||||
if (raw_caps) {
|
if (raw_caps) {
|
||||||
GstCaps *feature_caps;
|
GstCaps *feature_caps;
|
||||||
|
GstCapsFeatures *const features =
|
||||||
|
gst_caps_features_new
|
||||||
|
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, NULL);
|
||||||
|
|
||||||
out_caps = gst_caps_make_writable (out_caps);
|
out_caps = gst_caps_make_writable (out_caps);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue