Skip to content
  • Sebastian Dröge's avatar
    webrtc: In all blocking pad probes except for sink pads also handle serialized events · 4ffa6350
    Sebastian Dröge authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    Otherwise it can happen that e.g. the stream-start event is tried to be
    sent as part of pushing the first buffer. Downstream might not be in
    PAUSED/PLAYING yet, so the event is rejected with GST_FLOW_FLUSHING and
    because it's an event would not cause the blocking pad probe to trigger
    first. This would then return GST_FLOW_FLUSHING for the buffer and shut
    down all of upstream.
    
    To solve this we return GST_PAD_PROBE_DROP for all events. In case of
    sticky events they would be resent again later once we unblocked after
    blocking on the buffer and everything works fine.
    
    Don't handle events specifically in sink pad blocking pad probes as here
    downstream is not linked yet and we are actually waiting for the
    following CAPS event before unblocking can happen.
    
    Fixes #1172
    4ffa6350