From: Stefan Kost Date: Thu, 21 Dec 2006 08:12:26 +0000 (+0000) Subject: tests/check/elements/: consistent pad (de)activation X-Git-Tag: 1.19.3~507^2~15107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=556f09893cfb820519cd573dd8ea01edcd575e5f;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/tests/check/elements/gdpdepay.c b/tests/check/elements/gdpdepay.c index 263ee28..5857c2e 100644 --- a/tests/check/elements/gdpdepay.c +++ b/tests/check/elements/gdpdepay.c @@ -72,6 +72,8 @@ setup_gdpdepay () 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; } @@ -81,6 +83,8 @@ cleanup_gdpdepay (GstElement * 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); diff --git a/tests/check/elements/gdppay.c b/tests/check/elements/gdppay.c index a89792e..a554d31 100644 --- a/tests/check/elements/gdppay.c +++ b/tests/check/elements/gdppay.c @@ -71,6 +71,8 @@ setup_gdppay () 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; } @@ -80,6 +82,8 @@ cleanup_gdppay (GstElement * 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);