+2006-12-21 Stefan Kost <ensonic@users.sf.net>
+
+ * 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
+
2006-12-20 Tim-Philipp Müller <tim at centricular dot net>
* gst/typefind/gsttypefindfunctions.c: (plugin_init):
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);
g_list_free (buffers);
buffers = NULL;
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_sink_pad (audiotestsrc);
gst_check_teardown_element (audiotestsrc);
}
gdpdepay = gst_check_setup_element ("gdpdepay");
mysrcpad = gst_check_setup_src_pad (gdpdepay, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (gdpdepay, &sinktemplate, NULL);
+ gst_pad_set_active (mysrcpad, TRUE);
+ gst_pad_set_active (mysinkpad, TRUE);
return gdpdepay;
}
{
GST_DEBUG ("cleanup_gdpdepay");
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (gdpdepay);
gst_check_teardown_sink_pad (gdpdepay);
gst_check_teardown_element (gdpdepay);
gdppay = gst_check_setup_element ("gdppay");
mysrcpad = gst_check_setup_src_pad (gdppay, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (gdppay, &sinktemplate, NULL);
+ gst_pad_set_active (mysrcpad, TRUE);
+ gst_pad_set_active (mysinkpad, TRUE);
return gdppay;
}
{
GST_DEBUG ("cleanup_gdppay");
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (gdppay);
gst_check_teardown_sink_pad (gdppay);
gst_check_teardown_element (gdppay);
g_list_free (buffers);
buffers = NULL;
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_sink_pad (subparse);
gst_check_teardown_src_pad (subparse);
gst_check_teardown_element (subparse);
gst_element_set_state (textoverlay, GST_STATE_NULL);
gst_element_get_state (textoverlay, NULL, NULL, GST_CLOCK_TIME_NONE);
+ gst_pad_set_active (myvideosrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
notgst_check_teardown_src_pad2 (textoverlay, "video_sink");
if (mytextsrcpad) {
notgst_check_teardown_src_pad2 (textoverlay, "text_sink");
gst_element_set_state (videorate, GST_STATE_NULL);
gst_element_get_state (videorate, NULL, NULL, GST_CLOCK_TIME_NONE);
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (videorate);
gst_check_teardown_sink_pad (videorate);
gst_check_teardown_element (videorate);
g_list_free (buffers);
buffers = NULL;
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_sink_pad (videotestsrc);
gst_check_teardown_element (videotestsrc);
}
g_list_free (buffers);
buffers = NULL;
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (volume);
gst_check_teardown_sink_pad (volume);
gst_check_teardown_element (volume);
vorbisdec = gst_check_setup_element ("vorbisdec");
mysrcpad = gst_check_setup_src_pad (vorbisdec, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (vorbisdec, &sinktemplate, NULL);
+ gst_pad_set_active (mysrcpad, TRUE);
+ gst_pad_set_active (mysinkpad, TRUE);
return vorbisdec;
}
GST_DEBUG ("cleanup_vorbisdec");
gst_element_set_state (vorbisdec, GST_STATE_NULL);
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (vorbisdec);
gst_check_teardown_sink_pad (vorbisdec);
gst_check_teardown_element (vorbisdec);
vorbistag = gst_check_setup_element ("vorbistag");
mysrcpad = gst_check_setup_src_pad (vorbistag, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (vorbistag, &sinktemplate, NULL);
+ gst_pad_set_active (mysrcpad, TRUE);
+ gst_pad_set_active (mysinkpad, TRUE);
return vorbistag;
}
GST_DEBUG ("cleanup_vorbistag");
gst_element_set_state (vorbistag, GST_STATE_NULL);
+ gst_pad_set_active (mysrcpad, FALSE);
+ gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_src_pad (vorbistag);
gst_check_teardown_sink_pad (vorbistag);
gst_check_teardown_element (vorbistag);