Commit 351399ae authored by Stefan Kost's avatar Stefan Kost
Browse files

tests/check/elements/: reapply consistent pad (de)activation

Original commit message from CVS:
* tests/check/elements/audiopanorama.c: (cleanup_panorama):
* tests/check/elements/avimux.c: (setup_avimux), (cleanup_avimux):
* tests/check/elements/cmmldec.c: (setup_cmmldec),
(teardown_cmmldec):
* tests/check/elements/cmmlenc.c: (setup_cmmlenc),
(teardown_cmmlenc):
* tests/check/elements/level.c: (setup_level), (cleanup_level):
reapply consistent pad (de)activation
parent 32344603
2006-12-22 Stefan Kost <ensonic@users.sf.net>
* tests/check/elements/audiopanorama.c: (cleanup_panorama):
* tests/check/elements/avimux.c: (setup_avimux), (cleanup_avimux):
* tests/check/elements/cmmldec.c: (setup_cmmldec),
(teardown_cmmldec):
* tests/check/elements/cmmlenc.c: (setup_cmmlenc),
(teardown_cmmlenc):
* tests/check/elements/level.c: (setup_level), (cleanup_level):
reapply consistent pad (de)activation
2006-12-21 Jan Schmidt <thaytan@mad.scientist.com>
* configure.ac:
......
......@@ -128,6 +128,8 @@ cleanup_panorama (GstElement * panorama)
g_list_free (buffers);
buffers = NULL;
gst_pad_set_active (mysrcpad, FALSE);
gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (panorama);
gst_check_teardown_sink_pad (panorama);
gst_check_teardown_element (panorama);
......
......@@ -121,6 +121,8 @@ setup_avimux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
avimux = gst_check_setup_element ("avimux");
mysrcpad = setup_src_pad (avimux, srctemplate, NULL, sinkname);
mysinkpad = gst_check_setup_sink_pad (avimux, &sinktemplate, NULL);
gst_pad_set_active (mysrcpad, TRUE);
gst_pad_set_active (mysinkpad, TRUE);
return avimux;
}
......@@ -131,6 +133,8 @@ cleanup_avimux (GstElement * avimux, gchar * sinkname)
GST_DEBUG ("cleanup_avimux");
gst_element_set_state (avimux, GST_STATE_NULL);
gst_pad_set_active (mysrcpad, FALSE);
gst_pad_set_active (mysinkpad, FALSE);
teardown_src_pad (avimux, sinkname);
gst_check_teardown_sink_pad (avimux);
gst_check_teardown_element (avimux);
......
......@@ -136,6 +136,8 @@ setup_cmmldec ()
cmmldec = gst_check_setup_element ("cmmldec");
srcpad = gst_check_setup_src_pad (cmmldec, &srctemplate, NULL);
sinkpad = gst_check_setup_sink_pad (cmmldec, &sinktemplate, NULL);
gst_pad_set_active (srcpad, TRUE);
gst_pad_set_active (sinkpad, TRUE);
bus = gst_bus_new ();
gst_element_set_bus (cmmldec, bus);
......@@ -161,6 +163,8 @@ teardown_cmmldec ()
gst_object_unref (bus);
GST_DEBUG ("teardown_cmmldec");
gst_pad_set_active (srcpad, FALSE);
gst_pad_set_active (sinkpad, FALSE);
gst_check_teardown_src_pad (cmmldec);
gst_check_teardown_sink_pad (cmmldec);
gst_check_teardown_element (cmmldec);
......
......@@ -161,6 +161,8 @@ setup_cmmlenc ()
cmmlenc = gst_check_setup_element ("cmmlenc");
srcpad = gst_check_setup_src_pad (cmmlenc, &srctemplate, NULL);
sinkpad = gst_check_setup_sink_pad (cmmlenc, &sinktemplate, NULL);
gst_pad_set_active (srcpad, TRUE);
gst_pad_set_active (sinkpad, TRUE);
bus = gst_bus_new ();
gst_element_set_bus (cmmlenc, bus);
......@@ -189,6 +191,8 @@ teardown_cmmlenc ()
gst_object_unref (bus);
GST_DEBUG ("teardown_cmmlenc");
gst_pad_set_active (srcpad, FALSE);
gst_pad_set_active (sinkpad, FALSE);
gst_check_teardown_src_pad (cmmlenc);
gst_check_teardown_sink_pad (cmmlenc);
gst_check_teardown_element (cmmlenc);
......
......@@ -72,6 +72,8 @@ setup_level ()
level = gst_check_setup_element ("level");
mysrcpad = gst_check_setup_src_pad (level, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (level, &sinktemplate, NULL);
gst_pad_set_active (mysrcpad, TRUE);
gst_pad_set_active (mysinkpad, TRUE);
return level;
}
......@@ -81,6 +83,8 @@ cleanup_level (GstElement * level)
{
GST_DEBUG ("cleanup_level");
gst_pad_set_active (mysrcpad, FALSE);
gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (level);
gst_check_teardown_sink_pad (level);
gst_check_teardown_element (level);
......
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