summaryrefslogtreecommitdiff
path: root/tests/check
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2006-12-21 08:12:26 +0000
committerTim-Philipp Müller <tim@centricular.net>2012-09-11 01:54:31 +0100
commit556f09893cfb820519cd573dd8ea01edcd575e5f (patch)
tree64c23338fd62208f31606d252548093d3243c49c /tests/check
parentadda2ef16956a81150f1ab4acb4d2fa17c50ef23 (diff)
tests/check/elements/: consistent pad (de)activation
Original commit message from CVS: * tests/check/elements/audioresample.c: (cleanup_audioresample): * tests/check/elements/audiotestsrc.c: (cleanup_audiotestsrc): * tests/check/elements/gdpdepay.c: (setup_gdpdepay), (cleanup_gdpdepay): * tests/check/elements/gdppay.c: (setup_gdppay), (cleanup_gdppay): * tests/check/elements/subparse.c: (teardown_subparse): * tests/check/elements/textoverlay.c: (cleanup_textoverlay): * tests/check/elements/videorate.c: (cleanup_videorate): * tests/check/elements/videotestsrc.c: (cleanup_videotestsrc): * tests/check/elements/volume.c: (cleanup_volume): * tests/check/elements/vorbisdec.c: (setup_vorbisdec), (cleanup_vorbisdec): * tests/check/elements/vorbistag.c: (setup_vorbistag), (cleanup_vorbistag): consistent pad (de)activation
Diffstat (limited to 'tests/check')
-rw-r--r--tests/check/elements/gdpdepay.c4
-rw-r--r--tests/check/elements/gdppay.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/check/elements/gdpdepay.c b/tests/check/elements/gdpdepay.c
index 263ee288e..5857c2e4f 100644
--- a/tests/check/elements/gdpdepay.c
+++ b/tests/check/elements/gdpdepay.c
@@ -72,6 +72,8 @@ setup_gdpdepay ()
gdpdepay = gst_check_setup_element ("gdpdepay");
mysrcpad = gst_check_setup_src_pad (gdpdepay, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (gdpdepay, &sinktemplate, NULL);
+ gst_pad_set_active (mysrcpad, TRUE);
+ gst_pad_set_active (mysinkpad, TRUE);
return gdpdepay;
}
@@ -81,6 +83,8 @@ cleanup_gdpdepay (GstElement * gdpdepay)
{
GST_DEBUG ("cleanup_gdpdepay");
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (gdpdepay);
gst_check_teardown_sink_pad (gdpdepay);
gst_check_teardown_element (gdpdepay);
diff --git a/tests/check/elements/gdppay.c b/tests/check/elements/gdppay.c
index a89792e35..a554d31f2 100644
--- a/tests/check/elements/gdppay.c
+++ b/tests/check/elements/gdppay.c
@@ -71,6 +71,8 @@ setup_gdppay ()
gdppay = gst_check_setup_element ("gdppay");
mysrcpad = gst_check_setup_src_pad (gdppay, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (gdppay, &sinktemplate, NULL);
+ gst_pad_set_active (mysrcpad, TRUE);
+ gst_pad_set_active (mysinkpad, TRUE);
return gdppay;
}
@@ -80,6 +82,8 @@ cleanup_gdppay (GstElement * gdppay)
{
GST_DEBUG ("cleanup_gdppay");
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (gdppay);
gst_check_teardown_sink_pad (gdppay);
gst_check_teardown_element (gdppay);