mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +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);
|
||||
if (G_UNLIKELY (!sink)) {
|
||||
GST_WARNING_OBJECT (self, "Can't get video sink from renderer");
|
||||
if (video_caps)
|
||||
gst_caps_unref (video_caps);
|
||||
return FALSE;
|
||||
}
|
||||
allowed_caps = gst_pad_query_caps (sink, NULL);
|
||||
|
|
Loading…
Reference in a new issue