mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
flacenc: do not drop the first data buffer on the floor (and leak it either)
This commit is contained in:
parent
86053d9772
commit
483514528a
1 changed files with 3 additions and 1 deletions
|
@ -1072,7 +1072,9 @@ gst_flac_enc_write_callback (const FLAC__StreamEncoder * encoder,
|
|||
ret = gst_flac_enc_process_stream_headers (flacenc);
|
||||
flacenc->got_headers = TRUE;
|
||||
}
|
||||
} else if (flacenc->got_headers && samples == 0) {
|
||||
}
|
||||
|
||||
if (flacenc->got_headers && samples == 0) {
|
||||
/* header fixup, push downstream directly */
|
||||
GST_DEBUG_OBJECT (flacenc, "Fixing up headers at pos=%" G_GUINT64_FORMAT
|
||||
", size=%u", flacenc->offset, (guint) bytes);
|
||||
|
|
Loading…
Reference in a new issue