From 85c502d626f8cf48db0f0eb71ddcf7517d22800d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 15 Apr 2014 11:55:22 +0200 Subject: [PATCH] videoencoder/decoder: Fix memory leaks in the tests --- tests/check/libs/videodecoder.c | 4 ++-- tests/check/libs/videoencoder.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/check/libs/videodecoder.c b/tests/check/libs/videodecoder.c index 89916b3244..628a48bf3c 100644 --- a/tests/check/libs/videodecoder.c +++ b/tests/check/libs/videodecoder.c @@ -183,12 +183,12 @@ _mysinkpad_event (GstPad * pad, GstObject * parent, GstEvent * event) static void setup_videodecodertester (void) { - GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", + static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-raw") ); - GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", + static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-test-custom") diff --git a/tests/check/libs/videoencoder.c b/tests/check/libs/videoencoder.c index 57fa592c00..925b2bf667 100644 --- a/tests/check/libs/videoencoder.c +++ b/tests/check/libs/videoencoder.c @@ -145,12 +145,12 @@ _mysinkpad_event (GstPad * pad, GstObject * parent, GstEvent * event) static void setup_videoencodertester (void) { - GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", + static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-test-custom") ); - GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", + static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-raw")