• Michael Grüner's avatar
    gst-rtsp-server: Fix leak in appsrc2 example · fcb7f949
    Michael Grüner authored
    In the need-data appsrc callback, a buffer is pulled from the
    appsink. This buffer is then copied so that metadata is writable.
    The copy is pushed to the appsrc but it doesn't take ownership
    of the buffer so we need to manually unref it. The original buffer
    is finally unreffed when the sample is freed.
    fcb7f949