From 655bfbf776af88d80be0fe20d711d795770a86c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 16 Apr 2012 09:45:27 +0200 Subject: [PATCH] inputselector: Send reconfigure event on the new active pad when pads are switched --- plugins/elements/gstinputselector.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.7.4