mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
gst/gstghostpad.c: add push activation of sink ghost pads.
Original commit message from CVS: 2005-10-06 Thomas Vander Stichele <thomas at apestaart dot org> * gst/gstghostpad.c: (gst_ghost_pad_internal_do_activate_push): add push activation of sink ghost pads. Andye, please verify
This commit is contained in:
parent
6eb5fb3112
commit
f22af4c0bb
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-10-06 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/gstghostpad.c: (gst_ghost_pad_internal_do_activate_push):
|
||||||
|
add push activation of sink ghost pads.
|
||||||
|
Andye, please verify
|
||||||
|
|
||||||
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst/gstutils.c: (gst_element_link_pads):
|
* gst/gstutils.c: (gst_element_link_pads):
|
||||||
|
|
|
@ -484,9 +484,17 @@ gst_ghost_pad_internal_do_activate_push (GstPad * pad, gboolean active)
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
|
|
||||||
if (GST_PAD_DIRECTION (pad) == GST_PAD_SINK) {
|
if (GST_PAD_DIRECTION (pad) == GST_PAD_SINK) {
|
||||||
g_critical ("how did I get here?");
|
GstPad *parent = GST_PAD (gst_object_get_parent (GST_OBJECT (pad)));
|
||||||
|
|
||||||
ret = FALSE;
|
if (parent) {
|
||||||
|
g_return_val_if_fail (GST_IS_GHOST_PAD (parent), FALSE);
|
||||||
|
|
||||||
|
ret = gst_pad_activate_push (parent, active);
|
||||||
|
|
||||||
|
gst_object_unref (parent);
|
||||||
|
} else {
|
||||||
|
ret = FALSE;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
GstPad *peer = gst_pad_get_peer (pad);
|
GstPad *peer = gst_pad_get_peer (pad);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue