gst-plugins-good: flacenc: do not drop the first data buffer on the floor ( and leak it either)
Vincent Penquerc'h
vincent at kemper.freedesktop.org
Thu Jan 12 02:31:33 PST 2012
Module: gst-plugins-good
Branch: master
Commit: 483514528acfa3551fec92b9ea2dba3731f92f05
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=483514528acfa3551fec92b9ea2dba3731f92f05
Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date: Thu Jan 12 10:30:11 2012 +0000
flacenc: do not drop the first data buffer on the floor (and leak it either)
---
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 d30d314..6206529 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);
More information about the gstreamer-commits
mailing list