decodebin3: Don't forward already-handling SELECT_STREAMS
authorEdward Hervey <edward@centricular.com>
Fri, 10 Nov 2017 14:01:04 +0000 (15:01 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 10 Feb 2018 11:17:38 +0000 (12:17 +0100)
Upstream might respond negatively to the event, whereas we actually
handled it.

gst/playback/gstdecodebin3.c

index 3f09a1c..8d6ea53 100644 (file)
@@ -2541,6 +2541,8 @@ ghost_pad_event_probe (GstPad * pad, GstPadProbeInfo * info,
         SELECTION_UNLOCK (dbin);
         GST_DEBUG_OBJECT (pad,
             "Already handled/handling that SELECT_STREAMS event");
+        gst_event_unref (event);
+        ret = GST_PAD_PROBE_HANDLED;
         break;
       }
       dbin->select_streams_seqnum = seqnum;