mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
check/elements/matroskamux.c: Fix leak in check.
Original commit message from CVS: * check/elements/matroskamux.c: (setup_src_pad), (setup_sink_pad): Fix leak in check.
This commit is contained in:
parent
d94e691bee
commit
42c5075f17
4 changed files with 10 additions and 13 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-16 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* check/elements/matroskamux.c: (setup_src_pad), (setup_sink_pad):
|
||||||
|
Fix leak in check.
|
||||||
|
|
||||||
2005-11-16 Wim Taymans <wim@fluendo.com>
|
2005-11-16 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/flx/gstflxdec.c: (gst_flxdec_change_state):
|
* gst/flx/gstflxdec.c: (gst_flxdec_change_state):
|
||||||
|
|
|
@ -59,12 +59,10 @@ setup_src_pad (GstElement * element,
|
||||||
GstStaticPadTemplate * template, GstCaps * caps)
|
GstStaticPadTemplate * template, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
GstPadTemplate *templ;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (element, "setting up sending pad");
|
GST_DEBUG_OBJECT (element, "setting up sending pad");
|
||||||
/* sending pad */
|
/* sending pad */
|
||||||
templ = gst_static_pad_template_get (template);
|
srcpad = gst_pad_new_from_static_template (template, "src");
|
||||||
srcpad = gst_pad_new_from_template (templ, "src");
|
|
||||||
fail_if (srcpad == NULL, "Could not create a srcpad");
|
fail_if (srcpad == NULL, "Could not create a srcpad");
|
||||||
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
||||||
|
|
||||||
|
@ -110,12 +108,10 @@ setup_sink_pad (GstElement * element, GstStaticPadTemplate * template,
|
||||||
GstCaps * caps)
|
GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
GstPadTemplate *templ;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (element, "setting up receiving pad");
|
GST_DEBUG_OBJECT (element, "setting up receiving pad");
|
||||||
/* receiving pad */
|
/* receiving pad */
|
||||||
templ = gst_static_pad_template_get (template);
|
sinkpad = gst_pad_new_from_static_template (template, "sink");
|
||||||
sinkpad = gst_pad_new_from_template (templ, "sink");
|
|
||||||
|
|
||||||
fail_if (sinkpad == NULL, "Could not create a sinkpad");
|
fail_if (sinkpad == NULL, "Could not create a sinkpad");
|
||||||
|
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit 3aa0adc0cc4539ec9bb62ccf6d535240dad19e58
|
Subproject commit ea1409191cc1e71273b2dbdd94e7ab5fc5a60a51
|
|
@ -59,12 +59,10 @@ setup_src_pad (GstElement * element,
|
||||||
GstStaticPadTemplate * template, GstCaps * caps)
|
GstStaticPadTemplate * template, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
GstPadTemplate *templ;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (element, "setting up sending pad");
|
GST_DEBUG_OBJECT (element, "setting up sending pad");
|
||||||
/* sending pad */
|
/* sending pad */
|
||||||
templ = gst_static_pad_template_get (template);
|
srcpad = gst_pad_new_from_static_template (template, "src");
|
||||||
srcpad = gst_pad_new_from_template (templ, "src");
|
|
||||||
fail_if (srcpad == NULL, "Could not create a srcpad");
|
fail_if (srcpad == NULL, "Could not create a srcpad");
|
||||||
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
||||||
|
|
||||||
|
@ -110,12 +108,10 @@ setup_sink_pad (GstElement * element, GstStaticPadTemplate * template,
|
||||||
GstCaps * caps)
|
GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
GstPadTemplate *templ;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (element, "setting up receiving pad");
|
GST_DEBUG_OBJECT (element, "setting up receiving pad");
|
||||||
/* receiving pad */
|
/* receiving pad */
|
||||||
templ = gst_static_pad_template_get (template);
|
sinkpad = gst_pad_new_from_static_template (template, "sink");
|
||||||
sinkpad = gst_pad_new_from_template (templ, "sink");
|
|
||||||
|
|
||||||
fail_if (sinkpad == NULL, "Could not create a sinkpad");
|
fail_if (sinkpad == NULL, "Could not create a sinkpad");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue