summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Smith <msmith@xiph.org>2010-01-23 15:32:48 -0800
committerMichael Smith <msmith@xiph.org>2010-01-23 15:32:48 -0800
commite5b6c1324b9ea1dc9601b82729e4022760297dca (patch)
treeed0d3b7051e5f1681b2e3ff7def291729226c20a
parentcb0474b6b37bbc05883ce0eb2adefe18d680f239 (diff)
jpegenc: when creating an overflow buffer, copy timestamps.
-rw-r--r--ext/jpeg/gstjpegenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c
index dfb3bf08c..73e674c9e 100644
--- a/ext/jpeg/gstjpegenc.c
+++ b/ext/jpeg/gstjpegenc.c
@@ -233,6 +233,9 @@ gst_jpegenc_flush_destination (j_compress_ptr cinfo)
memcpy (GST_BUFFER_DATA (overflow_buffer),
GST_BUFFER_DATA (jpegenc->output_buffer), old_buffer_size);
+ gst_buffer_copy_metadata (overflow_buffer, jpegenc->output_buffer,
+ GST_BUFFER_COPY_TIMESTAMPS);
+
/* drop it into place, */
gst_buffer_unref (jpegenc->output_buffer);
jpegenc->output_buffer = overflow_buffer;