mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
tests/check/elements/: re-apply as it was -bad and not -ugly that is frozen, doh
Original commit message from CVS: * tests/check/elements/amrnbenc.c: (setup_amrnbenc), (cleanup_amrnbenc): * tests/check/elements/mpeg2dec.c: (setup_mpeg2dec), (cleanup_mpeg2dec): re-apply as it was -bad and not -ugly that is frozen, doh
This commit is contained in:
parent
5e564d0a7b
commit
687a8de8f6
3 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-12-22 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* tests/check/elements/amrnbenc.c: (setup_amrnbenc),
|
||||
(cleanup_amrnbenc):
|
||||
* tests/check/elements/mpeg2dec.c: (setup_mpeg2dec),
|
||||
(cleanup_mpeg2dec):
|
||||
re-apply as it was -bad and not -ugly that is frozen, doh
|
||||
|
||||
2006-12-21 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* tests/check/elements/amrnbenc.c: (setup_amrnbenc),
|
||||
|
|
|
@ -77,6 +77,8 @@ setup_amrnbenc ()
|
|||
amrnbenc = gst_check_setup_element ("amrnbenc");
|
||||
srcpad = gst_check_setup_src_pad (amrnbenc, &srctemplate, NULL);
|
||||
sinkpad = gst_check_setup_sink_pad (amrnbenc, &sinktemplate, NULL);
|
||||
gst_pad_set_active (mysrcpad, TRUE);
|
||||
gst_pad_set_active (mysinkpad, TRUE);
|
||||
|
||||
bus = gst_bus_new ();
|
||||
gst_element_set_bus (amrnbenc, bus);
|
||||
|
@ -104,6 +106,8 @@ cleanup_amrnbenc (GstElement * amrnbenc)
|
|||
gst_object_unref (bus);
|
||||
|
||||
GST_DEBUG ("cleanup_amrnbenc");
|
||||
gst_pad_set_active (mysrcpad, FALSE);
|
||||
gst_pad_set_active (mysinkpad, FALSE);
|
||||
gst_check_teardown_src_pad (amrnbenc);
|
||||
gst_check_teardown_sink_pad (amrnbenc);
|
||||
gst_check_teardown_element (amrnbenc);
|
||||
|
|
|
@ -1347,6 +1347,8 @@ setup_mpeg2dec ()
|
|||
mpeg2dec = gst_check_setup_element ("mpeg2dec");
|
||||
mysrcpad = gst_check_setup_src_pad (mpeg2dec, &srctemplate, NULL);
|
||||
mysinkpad = gst_check_setup_sink_pad (mpeg2dec, &sinktemplate, NULL);
|
||||
gst_pad_set_active (mysrcpad, TRUE);
|
||||
gst_pad_set_active (mysinkpad, TRUE);
|
||||
|
||||
return mpeg2dec;
|
||||
}
|
||||
|
@ -1357,6 +1359,8 @@ cleanup_mpeg2dec (GstElement * mpeg2dec)
|
|||
GST_DEBUG ("cleanup_mpeg2dec");
|
||||
gst_element_set_state (mpeg2dec, GST_STATE_NULL);
|
||||
|
||||
gst_pad_set_active (mysrcpad, FALSE);
|
||||
gst_pad_set_active (mysinkpad, FALSE);
|
||||
gst_check_teardown_src_pad (mpeg2dec);
|
||||
gst_check_teardown_sink_pad (mpeg2dec);
|
||||
gst_check_teardown_element (mpeg2dec);
|
||||
|
|
Loading…
Reference in a new issue