tests/check/elements/: consistent pad (de)activation
authorStefan Kost <ensonic@users.sourceforge.net>
Thu, 21 Dec 2006 08:12:26 +0000 (08:12 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Thu, 21 Dec 2006 08:12:26 +0000 (08:12 +0000)
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

tests/check/elements/audioresample.c

index 8ab663d..bd5bf42 100644 (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);