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/y4menc.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/y4menc.c')
-rw-r--r-- | tests/check/elements/y4menc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |