mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
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:
parent
d7cfd8a12e
commit
755ac0cb0d
5 changed files with 12 additions and 0 deletions
|
@ -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>
|
2005-08-30 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/base/gstadapter.c: (gst_adapter_flush):
|
* gst/base/gstadapter.c: (gst_adapter_flush):
|
||||||
|
|
|
@ -59,6 +59,7 @@ setup_fakesrc ()
|
||||||
fakesrc = gst_check_setup_element ("fakesrc");
|
fakesrc = gst_check_setup_element ("fakesrc");
|
||||||
mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
|
||||||
gst_pad_set_event_function (mysinkpad, event_func);
|
gst_pad_set_event_function (mysinkpad, event_func);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
return fakesrc;
|
return fakesrc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,8 @@ setup_identity ()
|
||||||
mysrcpad = gst_check_setup_src_pad (identity, &srctemplate, NULL);
|
mysrcpad = gst_check_setup_src_pad (identity, &srctemplate, NULL);
|
||||||
mysinkpad = gst_check_setup_sink_pad (identity, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (identity, &sinktemplate, NULL);
|
||||||
gst_pad_set_event_function (mysinkpad, event_func);
|
gst_pad_set_event_function (mysinkpad, event_func);
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return identity;
|
return identity;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,7 @@ setup_fakesrc ()
|
||||||
fakesrc = gst_check_setup_element ("fakesrc");
|
fakesrc = gst_check_setup_element ("fakesrc");
|
||||||
mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
|
||||||
gst_pad_set_event_function (mysinkpad, event_func);
|
gst_pad_set_event_function (mysinkpad, event_func);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
return fakesrc;
|
return fakesrc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,8 @@ setup_identity ()
|
||||||
mysrcpad = gst_check_setup_src_pad (identity, &srctemplate, NULL);
|
mysrcpad = gst_check_setup_src_pad (identity, &srctemplate, NULL);
|
||||||
mysinkpad = gst_check_setup_sink_pad (identity, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (identity, &sinktemplate, NULL);
|
||||||
gst_pad_set_event_function (mysinkpad, event_func);
|
gst_pad_set_event_function (mysinkpad, event_func);
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return identity;
|
return identity;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue