inputselector: Send reconfigure event on the new active pad when pads are switched
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 16 Apr 2012 07:45:27 +0000 (09:45 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 16 Apr 2012 07:46:49 +0000 (09:46 +0200)
plugins/elements/gstinputselector.c

index 564e721..2d6909b 100644 (file)
@@ -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)