mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
subtitleoverlay: Fix caps memory leak when failing to get sinkpad from subtitle renderer
https://bugzilla.gnome.org/show_bug.cgi?id=775224
This commit is contained in:
parent
4efc15dffb
commit
b2b8e77566
1 changed files with 2 additions and 0 deletions
|
@ -931,6 +931,8 @@ _link_renderer (GstSubtitleOverlay * self, GstElement * renderer,
|
||||||
sink = _get_video_pad (renderer);
|
sink = _get_video_pad (renderer);
|
||||||
if (G_UNLIKELY (!sink)) {
|
if (G_UNLIKELY (!sink)) {
|
||||||
GST_WARNING_OBJECT (self, "Can't get video sink from renderer");
|
GST_WARNING_OBJECT (self, "Can't get video sink from renderer");
|
||||||
|
if (video_caps)
|
||||||
|
gst_caps_unref (video_caps);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
allowed_caps = gst_pad_query_caps (sink, NULL);
|
allowed_caps = gst_pad_query_caps (sink, NULL);
|
||||||
|
|
Loading…
Reference in a new issue