commit dc8843d9f56f9ae6021957074bdd9674b61df591
Author: Song Bing <b06498@freescale.com>
Date:   Tue Dec 23 13:35:24 2014 +0800

    inputselector: should get active sink pad again before decide if need
    forward event
    
    Should keep get the active sink pad in lock as change active sink pad
    also work in lock.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741893

diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index 304827c..e497dc2 100644
--- a/plugins/elements/gstinputselector.c
+++ b/plugins/elements/gstinputselector.c
@@ -465,6 +465,7 @@ gst_selector_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
     gst_object_unref (prev_active_sinkpad);
 
   GST_INPUT_SELECTOR_LOCK (sel);
+  active_sinkpad = gst_input_selector_activate_sinkpad (sel, pad);
 
   /* only forward if we are dealing with the active sinkpad */
   forward = (pad == active_sinkpad);
