gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy activate_push down to the internal pad as well.

Original commit message from CVS:
2005-06-30  Andy Wingo  <wingo@pobox.com>

* gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy
activate_push down to the internal pad as well.
This commit is contained in:
Andy Wingo 2005-06-30 11:39:34 +00:00
parent 6c8dc39ee4
commit 6da6bc4530
2 changed files with 26 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-06-30 Andy Wingo <wingo@pobox.com>
* gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy
activate_push down to the internal pad as well.
2005-06-30 Torsten Schoenfeld <kaffeetisch@gmx.de>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -506,6 +506,26 @@ gst_ghost_proxy_pad_do_activate_pull (GstPad * pad, gboolean active)
return ret;
}
static gboolean
gst_ghost_pad_do_activate_push (GstPad * pad, gboolean active)
{
GstPad *internal;
gboolean ret;
ret = gst_proxy_pad_do_activatepush (pad, active);
GST_LOCK (pad);
internal = GST_GHOST_PAD (pad)->internal;
if (internal)
ret &= gst_pad_activate_push (internal, active);
GST_UNLOCK (pad);
return ret;
}
static GstPadLinkReturn
gst_ghost_pad_do_link (GstPad * pad, GstPad * peer)
{
@ -680,6 +700,7 @@ gst_ghost_pad_new (const gchar * name, GstPad * target)
"direction", GST_PAD_DIRECTION (target),
"template", GST_PAD_PAD_TEMPLATE (target), "target", target, NULL);
gst_pad_set_activatepush_function (ret, gst_ghost_pad_do_activate_push);
gst_pad_set_link_function (ret, gst_ghost_pad_do_link);
gst_pad_set_unlink_function (ret, gst_ghost_pad_do_unlink);