jpegenc: remove meta copy in jpegenc

GstVideoEncoder takes care of the Meta copy, so there is no need in
jpegenc

Fixes http://gstreamer-devel.966125.n4.nabble.com/jpegenc-copy-GstMeta-twice-tt4693981.html

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/576>
This commit is contained in:
nian.yan 2020-04-23 15:32:58 +08:00 committed by GStreamer Merge Bot
parent e5feaa76ed
commit 1944564d76

View file

@ -280,8 +280,6 @@ gst_jpegenc_term_destination (j_compress_ptr cinfo)
}
outbuf = gst_buffer_new ();
gst_buffer_copy_into (outbuf, jpegenc->current_frame->input_buffer,
GST_BUFFER_COPY_METADATA, 0, -1);
gst_buffer_append_memory (outbuf, jpegenc->output_mem);
jpegenc->output_mem = NULL;