pngparse: fix a GstCaps object leak

https://bugzilla.gnome.org//show_bug.cgi?id=752127
This commit is contained in:
Roman Donchenko 2015-07-08 17:08:56 +03:00 committed by Tim-Philipp Müller
parent f0358aac16
commit 649e76575d

View file

@ -221,6 +221,8 @@ gst_png_parse_handle_frame (GstBaseParse * parse,
} else {
GST_WARNING_OBJECT (pngparse, "No framerate set");
}
gst_caps_unref (sink_caps);
}
if (!gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (parse), caps))