ghostpad: Do nothing in _internal_activate_push_default
authorStian Selnes <stian@pexip.com>
Wed, 27 Jan 2016 12:20:23 +0000 (13:20 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 17 Feb 2016 10:26:12 +0000 (12:26 +0200)
commitab55ad7eaad4fa2c0b16c789350e882cf70a27ed
treea990f0232ef3c218d93518eb4365cc5318456611
parent6f4bb8850b7c2a326f6c438700e5099ff4600805
ghostpad: Do nothing in _internal_activate_push_default

When calling gst_pad_activate_mode() on a ghostpad
gst_ghost_pad_activate_push_default() will be called. This will call
gst_pad_activate_mode() on the proxypad (which is internal of the
ghostpad), calling gst_ghost_pad_internal_activate_push_default(), which
again will call gst_pad_activate_mode() on the original ghostpad.

By simply returning TRUE in
gst_ghost_pad_internal_activate_push_default() the redundant call to
gst_pad_activate_mode() (for the same pad) is avoided.

https://bugzilla.gnome.org/show_bug.cgi?id=761913
gst/gstghostpad.c