Skip to content
  • Tim-Philipp Müller's avatar
    rtpbasedepay: fix possible refcounting issue when detecting a discont · 86350ff8
    Tim-Philipp Müller authored
    When we detect a discont and the input buffer isn't already flagged
    as discont, handle_buffer() does a gst_buffer_make_writable() on the
    input buffer in order to set the flag. This assumed it had ownership
    of the input buffer though, which it didn't. This would still work
    fine in most scenarios, but could lead to crashes or mini object
    unref criticals in some cases when a discont is detected, e.g. when
    using pcapparse in front of a depayloader. This problem was
    introduced in bc14cdf5.
    86350ff8