Commit 1b56e801 authored by Sebastian Rasmussen's avatar Sebastian Rasmussen Committed by Tim-Philipp Müller
Browse files

dfbvideosink: Unref pad template caps after usage

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734518
parent 64f92ce6
...@@ -1349,8 +1349,10 @@ gst_dfbvideosink_getcaps (GstBaseSink * bsink, GstCaps * filter) ...@@ -1349,8 +1349,10 @@ gst_dfbvideosink_getcaps (GstBaseSink * bsink, GstCaps * filter)
dfbvideosink = GST_DFBVIDEOSINK (bsink); dfbvideosink = GST_DFBVIDEOSINK (bsink);
if (!dfbvideosink->setup) { if (!dfbvideosink->setup) {
caps = gst_caps_copy (gst_pad_get_pad_template_caps (GST_VIDEO_SINK_PAD GstCaps *tcaps =
(dfbvideosink))); gst_pad_get_pad_template_caps (GST_VIDEO_SINK_PAD (dfbvideosink));
caps = gst_caps_copy (tcaps);
gst_caps_unref (tcaps);
GST_DEBUG_OBJECT (dfbvideosink, "getcaps called and we are not setup yet, " GST_DEBUG_OBJECT (dfbvideosink, "getcaps called and we are not setup yet, "
"returning template %" GST_PTR_FORMAT, caps); "returning template %" GST_PTR_FORMAT, caps);
goto beach; goto beach;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment