diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-12-21 08:20:10 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-12-21 08:20:10 +0000 |
commit | 8c3256a998b6aaf8bf9c54805ddbf58b698a242b (patch) | |
tree | 912d0ae0da8b1b146d35c4003e0e849837d87ff9 /tests/check/elements/wavpackdec.c | |
parent | fe38d6d7acdd76482f055cb3ec2aea307d7adb9f (diff) | |
download | gst-plugins-bad-8c3256a998b6aaf8bf9c54805ddbf58b698a242b.tar.gz gst-plugins-bad-8c3256a998b6aaf8bf9c54805ddbf58b698a242b.tar.bz2 gst-plugins-bad-8c3256a998b6aaf8bf9c54805ddbf58b698a242b.zip |
tests/check/elements/: 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):
consistent pad (de)activation
Diffstat (limited to 'tests/check/elements/wavpackdec.c')
-rw-r--r-- | tests/check/elements/wavpackdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |