diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-12-22 10:15:24 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-12-22 10:15:24 +0000 |
commit | b9925f8b22fd4cea03dbad2983aa309529b8f50e (patch) | |
tree | 323beea378d772121a1df029495bcf2e568d71b6 | |
parent | 804cfff20a7ddb656205df590c0f264603fdf4b2 (diff) | |
download | gst-plugins-bad-b9925f8b22fd4cea03dbad2983aa309529b8f50e.tar.gz gst-plugins-bad-b9925f8b22fd4cea03dbad2983aa309529b8f50e.tar.bz2 gst-plugins-bad-b9925f8b22fd4cea03dbad2983aa309529b8f50e.zip |
tests/check/elements/: reapply consistent pad (de)activation
Original commit message from CVS:
* tests/check/elements/mpeg2enc.c: (setup_mpeg2enc),
(cleanup_mpeg2enc):
* tests/check/elements/rganalysis.c: (cleanup_rganalysis):
* tests/check/elements/wavpackdec.c: (setup_wavpackdec),
(cleanup_wavpackdec):
* tests/check/elements/wavpackenc.c: (setup_wavpackenc),
(cleanup_wavpackenc):
* tests/check/elements/y4menc.c: (setup_y4menc), (cleanup_y4menc):
reapply consistent pad (de)activation
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | tests/check/elements/mpeg2enc.c | 4 | ||||
-rw-r--r-- | tests/check/elements/rganalysis.c | 2 | ||||
-rw-r--r-- | tests/check/elements/wavpackdec.c | 4 | ||||
-rw-r--r-- | tests/check/elements/wavpackenc.c | 4 | ||||
-rw-r--r-- | tests/check/elements/y4menc.c | 4 |
6 files changed, 30 insertions, 0 deletions
@@ -1,3 +1,15 @@ +2006-12-22 Stefan Kost <ensonic@users.sf.net> + + * tests/check/elements/mpeg2enc.c: (setup_mpeg2enc), + (cleanup_mpeg2enc): + * tests/check/elements/rganalysis.c: (cleanup_rganalysis): + * tests/check/elements/wavpackdec.c: (setup_wavpackdec), + (cleanup_wavpackdec): + * tests/check/elements/wavpackenc.c: (setup_wavpackenc), + (cleanup_wavpackenc): + * tests/check/elements/y4menc.c: (setup_y4menc), (cleanup_y4menc): + reapply consistent pad (de)activation + 2006-12-21 Jan Schmidt <thaytan@mad.scientist.com> * configure.ac: diff --git a/tests/check/elements/mpeg2enc.c b/tests/check/elements/mpeg2enc.c index 07151cef..221d732b 100644 --- a/tests/check/elements/mpeg2enc.c +++ b/tests/check/elements/mpeg2enc.c @@ -83,6 +83,8 @@ setup_mpeg2enc () mpeg2enc = gst_check_setup_element ("mpeg2enc"); mysrcpad = gst_check_setup_src_pad (mpeg2enc, &srctemplate, NULL); mysinkpad = gst_check_setup_sink_pad (mpeg2enc, &sinktemplate, NULL); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); /* need to know when we are eos */ gst_pad_set_event_function (mysinkpad, test_sink_event); @@ -100,6 +102,8 @@ cleanup_mpeg2enc (GstElement * mpeg2enc) GST_DEBUG ("cleanup_mpeg2enc"); gst_element_set_state (mpeg2enc, GST_STATE_NULL); + gst_pad_set_active (mysrcpad, FALSE); + gst_pad_set_active (mysinkpad, FALSE); gst_check_teardown_src_pad (mpeg2enc); gst_check_teardown_sink_pad (mpeg2enc); gst_check_teardown_element (mpeg2enc); diff --git a/tests/check/elements/rganalysis.c b/tests/check/elements/rganalysis.c index 17b4d62f..63e3c720 100644 --- a/tests/check/elements/rganalysis.c +++ b/tests/check/elements/rganalysis.c @@ -187,6 +187,8 @@ cleanup_rganalysis (GstElement * element) /* The bus owns references to the element: */ gst_element_set_bus (element, NULL); + gst_pad_set_active (mysrcpad, FALSE); + gst_pad_set_active (mysinkpad, FALSE); gst_check_teardown_src_pad (element); gst_check_teardown_sink_pad (element); gst_check_teardown_element (element); diff --git a/tests/check/elements/wavpackdec.c b/tests/check/elements/wavpackdec.c index 6c7bb4e1..b058a5e2 100644 --- a/tests/check/elements/wavpackdec.c +++ b/tests/check/elements/wavpackdec.c @@ -69,6 +69,8 @@ setup_wavpackdec () wavpackdec = gst_check_setup_element ("wavpackdec"); mysrcpad = gst_check_setup_src_pad (wavpackdec, &srctemplate, NULL); mysinkpad = gst_check_setup_sink_pad (wavpackdec, &sinktemplate, NULL); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); return wavpackdec; } @@ -79,6 +81,8 @@ cleanup_wavpackdec (GstElement * wavpackdec) GST_DEBUG ("cleanup_wavpackdec"); gst_element_set_state (wavpackdec, GST_STATE_NULL); + gst_pad_set_active (mysrcpad, FALSE); + gst_pad_set_active (mysinkpad, FALSE); gst_check_teardown_src_pad (wavpackdec); gst_check_teardown_sink_pad (wavpackdec); gst_check_teardown_element (wavpackdec); diff --git a/tests/check/elements/wavpackenc.c b/tests/check/elements/wavpackenc.c index 9053ef4b..3ac3ea3f 100644 --- a/tests/check/elements/wavpackenc.c +++ b/tests/check/elements/wavpackenc.c @@ -62,6 +62,8 @@ setup_wavpackenc () wavpackenc = gst_check_setup_element ("wavpackenc"); mysrcpad = gst_check_setup_src_pad (wavpackenc, &srctemplate, NULL); mysinkpad = gst_check_setup_sink_pad (wavpackenc, &sinktemplate, NULL); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); fail_unless (gst_element_set_state (wavpackenc, GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, @@ -82,6 +84,8 @@ cleanup_wavpackenc (GstElement * wavpackenc) gst_element_set_state (wavpackenc, GST_STATE_NULL); + gst_pad_set_active (mysrcpad, FALSE); + gst_pad_set_active (mysinkpad, FALSE); gst_check_teardown_src_pad (wavpackenc); gst_check_teardown_sink_pad (wavpackenc); gst_check_teardown_element (wavpackenc); diff --git a/tests/check/elements/y4menc.c b/tests/check/elements/y4menc.c index 80662ca3..56088891 100644 --- a/tests/check/elements/y4menc.c +++ b/tests/check/elements/y4menc.c @@ -58,6 +58,8 @@ setup_y4menc () y4menc = gst_check_setup_element ("y4menc"); mysrcpad = gst_check_setup_src_pad (y4menc, &srctemplate, NULL); mysinkpad = gst_check_setup_sink_pad (y4menc, &sinktemplate, NULL); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); return y4menc; } @@ -68,6 +70,8 @@ cleanup_y4menc (GstElement * y4menc) GST_DEBUG ("cleanup_y4menc"); gst_element_set_state (y4menc, GST_STATE_NULL); + gst_pad_set_active (mysrcpad, FALSE); + gst_pad_set_active (mysinkpad, FALSE); gst_check_teardown_src_pad (y4menc); gst_check_teardown_sink_pad (y4menc); gst_check_teardown_element (y4menc); |