inputselector: Wait for other streams to advance on unselected pads
authorEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 14 Aug 2012 16:44:38 +0000 (18:44 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 14 Aug 2012 16:44:38 +0000 (18:44 +0200)
Otherwise we end up dropping a lot of data in the case where data starts
arriving on the non-selected pad, resulting in big gaps in stream switching

plugins/elements/gstinputselector.c

index 85a6c6c..e71e19c 100644 (file)
@@ -711,7 +711,6 @@ gst_input_selector_wait_running_time (GstInputSelector * sel,
     }
 
     if (selpad != active_selpad && !sel->flushing && !selpad->flushing &&
-        (sel->cache_buffers || active_selpad->pushed) &&
         (sel->blocked || cur_running_time == -1
             || running_time >= cur_running_time)) {
       if (!sel->blocked) {