mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
flacdec: fix buffer leak
gst_buffer_replace() will take its own ref, so we still have to unref the buffer if we don't need it any longer.
This commit is contained in:
parent
e93f784ee1
commit
8accf2704b
1 changed files with 1 additions and 0 deletions
|
@ -1032,6 +1032,7 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
|
|||
"not pushing %d samples at offset %" G_GINT64_FORMAT
|
||||
" (in seek)", samples, GST_BUFFER_OFFSET (outbuf));
|
||||
gst_buffer_replace (&flacdec->pending, outbuf);
|
||||
gst_buffer_unref (outbuf);
|
||||
flacdec->pending_samples = samples;
|
||||
ret = GST_FLOW_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue