tests/check/elements/: 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):
consistent pad (de)activation
This commit is contained in:
Stefan Kost 2006-12-21 08:15:23 +00:00
parent 2f353d7379
commit 4b7d466ad9
6 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,14 @@
2006-12-21 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):
consistent pad (de)activation
2006-12-18 Jan Schmidt <thaytan@mad.scientist.com>
* configure.ac:

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);