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
This commit is contained in:
Stefan Kost 2006-12-21 08:12:26 +00:00
parent 7238064f5c
commit fe38d6d7ac

View file

@ -108,6 +108,8 @@ cleanup_audioresample (GstElement * audioresample)
fail_unless (gst_element_set_state (audioresample,
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to NULL");
gst_pad_set_active (mysrcpad, FALSE);
gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (audioresample);
gst_check_teardown_sink_pad (audioresample);
gst_check_teardown_element (audioresample);