mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
assrender: remove code that can't be reached
If this code could ever be reached, it would leak memory (CID 1231979), but gst_caps_get_features() never returns NULL, so that can't happen.
This commit is contained in:
parent
d8b5675ddc
commit
cd325defca
1 changed files with 2 additions and 7 deletions
|
@ -814,13 +814,8 @@ gst_ass_render_setcaps_video (GstPad * pad, GstAssRender * render,
|
||||||
overlay_caps = gst_caps_copy (caps);
|
overlay_caps = gst_caps_copy (caps);
|
||||||
|
|
||||||
f = gst_caps_get_features (overlay_caps, 0);
|
f = gst_caps_get_features (overlay_caps, 0);
|
||||||
if (f == NULL) {
|
|
||||||
f = gst_caps_features_new
|
|
||||||
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, NULL);
|
|
||||||
} else {
|
|
||||||
gst_caps_features_add (f,
|
gst_caps_features_add (f,
|
||||||
GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
||||||
}
|
|
||||||
|
|
||||||
ret = gst_pad_peer_query_accept_caps (render->srcpad, overlay_caps);
|
ret = gst_pad_peer_query_accept_caps (render->srcpad, overlay_caps);
|
||||||
GST_DEBUG_OBJECT (render, "Downstream accepts the overlay meta: %d", ret);
|
GST_DEBUG_OBJECT (render, "Downstream accepts the overlay meta: %d", ret);
|
||||||
|
|
Loading…
Reference in a new issue