commit 4f2f9cacc331ab5c1f12f4e9592d8ef9ffc835fc
Author: Song Bing <b06498@freescale.com>
Date:   Mon Dec 1 14:27:24 2014 +0800

    [inputselector] sticky events haven't send out when active track reach
    EOS
    
    The root cause is the sticky event is send in chain function. But the
    short audio track already reach EOS, so chain function can't be called. The
    resolution is send the sticky event when track switching.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740949
    
    Signed-off-by: Song Bing <b06498@freescale.com>

diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index 84e2c7b..4f538af 100644
--- a/plugins/elements/gstinputselector.c
+++ b/plugins/elements/gstinputselector.c
@@ -1387,6 +1387,12 @@ gst_input_selector_set_active_pad (GstInputSelector * self, GstPad * pad)
   GST_DEBUG_OBJECT (self, "New active pad is %" GST_PTR_FORMAT,
       self->active_sinkpad);
 
+  if (old != new && new->eos) {
+    gst_pad_sticky_events_foreach (GST_PAD_CAST (new), forward_sticky_events,
+        self);
+    new->events_pending = FALSE;
+  }
+
   return TRUE;
 }
 
