diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-12 10:30:11 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-12 10:30:56 +0000 |
commit | 483514528acfa3551fec92b9ea2dba3731f92f05 (patch) | |
tree | dfb559404278f7c5fa5e2bcf018a003e5e496453 | |
parent | 86053d977287fd56765f5c2cc80c42a8074167dd (diff) |
flacenc: do not drop the first data buffer on the floor (and leak it either)
-rw-r--r-- | ext/flac/gstflacenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index d30d31419..62065299d 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -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); |