gstreamer: inputselector: Send reconfigure event on the new active pad when pads are switched

Sebastian Dröge slomo at kemper.freedesktop.org
Mon Apr 16 00:47:01 PDT 2012


Module: gstreamer
Branch: master
Commit: 655bfbf776af88d80be0fe20d711d795770a86c1
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=655bfbf776af88d80be0fe20d711d795770a86c1

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon Apr 16 09:45:27 2012 +0200

inputselector: Send reconfigure event on the new active pad when pads are switched

---

 plugins/elements/gstinputselector.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index 564e721..2d6909b 100644
--- a/plugins/elements/gstinputselector.c
+++ b/plugins/elements/gstinputselector.c
@@ -929,6 +929,8 @@ gst_input_selector_set_active_pad (GstInputSelector * self, GstPad * pad)
   active_pad_p = &self->active_sinkpad;
   gst_object_replace ((GstObject **) active_pad_p, GST_OBJECT_CAST (pad));
 
+  gst_pad_push_event (pad, gst_event_new_reconfigure ());
+
   /* Wake up all non-active pads in sync mode, they might be
    * the active pad now */
   if (self->sync_streams)



More information about the gstreamer-commits mailing list