mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
jpegenc: when creating an overflow buffer, copy timestamps.
This commit is contained in:
parent
cb0474b6b3
commit
e5b6c1324b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue