check/elements/: Activate pads before using them.

Original commit message from CVS:
* check/elements/fakesrc.c: (setup_fakesrc):
* check/elements/identity.c: (setup_identity):
Activate pads before using them.
This commit is contained in:
Wim Taymans 2005-08-30 19:45:38 +00:00
parent d7cfd8a12e
commit 755ac0cb0d
5 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-08-30 Wim Taymans <wim@fluendo.com>
* check/elements/fakesrc.c: (setup_fakesrc):
* check/elements/identity.c: (setup_identity):
Activate pads before using them.
2005-08-30 Wim Taymans <wim@fluendo.com>
* gst/base/gstadapter.c: (gst_adapter_flush):

View file

@ -59,6 +59,7 @@ setup_fakesrc ()
fakesrc = gst_check_setup_element ("fakesrc");
mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
gst_pad_set_event_function (mysinkpad, event_func);
gst_pad_set_active (mysinkpad, TRUE);
return fakesrc;
}

View file

@ -70,6 +70,8 @@ setup_identity ()
mysrcpad = gst_check_setup_src_pad (identity, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (identity, &sinktemplate, NULL);
gst_pad_set_event_function (mysinkpad, event_func);
gst_pad_set_active (mysrcpad, TRUE);
gst_pad_set_active (mysinkpad, TRUE);
return identity;
}

View file

@ -59,6 +59,7 @@ setup_fakesrc ()
fakesrc = gst_check_setup_element ("fakesrc");
mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
gst_pad_set_event_function (mysinkpad, event_func);
gst_pad_set_active (mysinkpad, TRUE);
return fakesrc;
}

View file

@ -70,6 +70,8 @@ setup_identity ()
mysrcpad = gst_check_setup_src_pad (identity, &srctemplate, NULL);
mysinkpad = gst_check_setup_sink_pad (identity, &sinktemplate, NULL);
gst_pad_set_event_function (mysinkpad, event_func);
gst_pad_set_active (mysrcpad, TRUE);
gst_pad_set_active (mysinkpad, TRUE);
return identity;
}