summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2005-11-16 17:18:34 +0000
committerWim Taymans <wim.taymans@gmail.com>2005-11-16 17:18:34 +0000
commitb9eaa6aebe626198c2cc90f20dd5912e2f860755 (patch)
tree12f532e042d9ee2b8761d2335ecdbee3ab10d2b0
parent4258474de230c85ec937e4b16011d28fe46f86f9 (diff)
check/Makefile.am: Enable valgrind check that should work fine now.
Original commit message from CVS: * check/Makefile.am: Enable valgrind check that should work fine now. * gst/elements/gsttypefindelement.c: (gst_type_find_element_init): * gst/gstqueue.c: (gst_queue_init): Fix memleaks in pad allocation.
-rw-r--r--ChangeLog9
-rw-r--r--check/Makefile.am1
m---------common0
-rw-r--r--gst/elements/gsttypefindelement.c11
-rw-r--r--gst/gstqueue.c8
-rw-r--r--plugins/elements/gstqueue.c8
-rw-r--r--plugins/elements/gsttypefindelement.c11
-rw-r--r--tests/check/Makefile.am1
8 files changed, 23 insertions, 26 deletions
diff --git a/ChangeLog b/ChangeLog
index e26ee31ea..4c59b2a1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-11-16 Wim Taymans <wim@fluendo.com>
+
+ * check/Makefile.am:
+ Enable valgrind check that should work fine now.
+
+ * gst/elements/gsttypefindelement.c: (gst_type_find_element_init):
+ * gst/gstqueue.c: (gst_queue_init):
+ Fix memleaks in pad allocation.
+
2005-11-16 Andy Wingo <wingo@pobox.com>
* gst/net/Makefile.am:
diff --git a/check/Makefile.am b/check/Makefile.am
index 8ddfbd9ad..e32898d60 100644
--- a/check/Makefile.am
+++ b/check/Makefile.am
@@ -88,7 +88,6 @@ net_gstnettimeprovider_LDADD = \
VALGRIND_TO_FIX = \
elements/fakesrc \
gst/gstevent \
- generic/states \
gst-libs/controller \
pipelines/simple_launch_lines
diff --git a/common b/common
-Subproject 657b549dfb640a76f3d7ab7676e453c801a83dc
+Subproject 3aa0adc0cc4539ec9bb62ccf6d535240dad19e5
diff --git a/gst/elements/gsttypefindelement.c b/gst/elements/gsttypefindelement.c
index 6bad7ebd6..33bd983eb 100644
--- a/gst/elements/gsttypefindelement.c
+++ b/gst/elements/gsttypefindelement.c
@@ -204,11 +204,10 @@ static void
gst_type_find_element_init (GstTypeFindElement * typefind,
GstTypeFindElementClass * g_class)
{
- GstPadTemplate *sink_template, *src_template;
-
/* sinkpad */
- src_template = gst_static_pad_template_get (&type_find_element_sink_template);
- typefind->sink = gst_pad_new_from_template (src_template, "sink");
+ typefind->sink =
+ gst_pad_new_from_static_template (&type_find_element_sink_template,
+ "sink");
gst_pad_set_activate_function (typefind->sink,
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
@@ -219,8 +218,8 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
gst_element_add_pad (GST_ELEMENT (typefind), typefind->sink);
/* srcpad */
- sink_template = gst_static_pad_template_get (&type_find_element_src_template);
- typefind->src = gst_pad_new_from_template (sink_template, "src");
+ typefind->src =
+ gst_pad_new_from_static_template (&type_find_element_src_template, "src");
gst_pad_set_activatepull_function (typefind->src,
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
diff --git a/gst/gstqueue.c b/gst/gstqueue.c
index 890f7f5d6..0729a694d 100644
--- a/gst/gstqueue.c
+++ b/gst/gstqueue.c
@@ -331,10 +331,7 @@ gst_queue_class_init (GstQueueClass * klass)
static void
gst_queue_init (GstQueue * queue)
{
- GstPadTemplate *sink_template, *src_template;
-
- sink_template = gst_static_pad_template_get (&sinktemplate);
- queue->sinkpad = gst_pad_new_from_template (sink_template, "sink");
+ queue->sinkpad = gst_pad_new_from_static_template (&sinktemplate, "sink");
gst_pad_set_chain_function (queue->sinkpad,
GST_DEBUG_FUNCPTR (gst_queue_chain));
@@ -350,8 +347,7 @@ gst_queue_init (GstQueue * queue)
GST_DEBUG_FUNCPTR (gst_queue_bufferalloc));
gst_element_add_pad (GST_ELEMENT (queue), queue->sinkpad);
- src_template = gst_static_pad_template_get (&srctemplate);
- queue->srcpad = gst_pad_new_from_template (src_template, "src");
+ queue->srcpad = gst_pad_new_from_static_template (&srctemplate, "src");
gst_pad_set_activatepush_function (queue->srcpad,
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c
index 890f7f5d6..0729a694d 100644
--- a/plugins/elements/gstqueue.c
+++ b/plugins/elements/gstqueue.c
@@ -331,10 +331,7 @@ gst_queue_class_init (GstQueueClass * klass)
static void
gst_queue_init (GstQueue * queue)
{
- GstPadTemplate *sink_template, *src_template;
-
- sink_template = gst_static_pad_template_get (&sinktemplate);
- queue->sinkpad = gst_pad_new_from_template (sink_template, "sink");
+ queue->sinkpad = gst_pad_new_from_static_template (&sinktemplate, "sink");
gst_pad_set_chain_function (queue->sinkpad,
GST_DEBUG_FUNCPTR (gst_queue_chain));
@@ -350,8 +347,7 @@ gst_queue_init (GstQueue * queue)
GST_DEBUG_FUNCPTR (gst_queue_bufferalloc));
gst_element_add_pad (GST_ELEMENT (queue), queue->sinkpad);
- src_template = gst_static_pad_template_get (&srctemplate);
- queue->srcpad = gst_pad_new_from_template (src_template, "src");
+ queue->srcpad = gst_pad_new_from_static_template (&srctemplate, "src");
gst_pad_set_activatepush_function (queue->srcpad,
GST_DEBUG_FUNCPTR (gst_queue_src_activate_push));
diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c
index 6bad7ebd6..33bd983eb 100644
--- a/plugins/elements/gsttypefindelement.c
+++ b/plugins/elements/gsttypefindelement.c
@@ -204,11 +204,10 @@ static void
gst_type_find_element_init (GstTypeFindElement * typefind,
GstTypeFindElementClass * g_class)
{
- GstPadTemplate *sink_template, *src_template;
-
/* sinkpad */
- src_template = gst_static_pad_template_get (&type_find_element_sink_template);
- typefind->sink = gst_pad_new_from_template (src_template, "sink");
+ typefind->sink =
+ gst_pad_new_from_static_template (&type_find_element_sink_template,
+ "sink");
gst_pad_set_activate_function (typefind->sink,
GST_DEBUG_FUNCPTR (gst_type_find_element_activate));
@@ -219,8 +218,8 @@ gst_type_find_element_init (GstTypeFindElement * typefind,
gst_element_add_pad (GST_ELEMENT (typefind), typefind->sink);
/* srcpad */
- sink_template = gst_static_pad_template_get (&type_find_element_src_template);
- typefind->src = gst_pad_new_from_template (sink_template, "src");
+ typefind->src =
+ gst_pad_new_from_static_template (&type_find_element_src_template, "src");
gst_pad_set_activatepull_function (typefind->src,
GST_DEBUG_FUNCPTR (gst_type_find_element_activate_src_pull));
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index 8ddfbd9ad..e32898d60 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -88,7 +88,6 @@ net_gstnettimeprovider_LDADD = \
VALGRIND_TO_FIX = \
elements/fakesrc \
gst/gstevent \
- generic/states \
gst-libs/controller \
pipelines/simple_launch_lines