From: Tim-Philipp Müller Date: Thu, 25 Dec 2014 21:32:40 +0000 (+0000) Subject: qtmux: fix ALAC muxing X-Git-Tag: 1.6.0~685 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa94fc6beb95ef6b811bec53696403fe47fa1f42;p=platform%2Fupstream%2Fgst-plugins-good.git qtmux: fix ALAC muxing Actually copy the codec data instead of copying nothing and then bombing out because there's no data. Fixes: gst-launch-1.0 audiotestsrc ! avenc_alac ! qtmux ! fakesink https://bugzilla.gnome.org/show_bug.cgi?id=741783 --- diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index fc747ed..6614ba4 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -2870,7 +2870,8 @@ gst_qt_mux_audio_sink_set_caps (GstQTPad * qtpad, GstCaps * caps) if (GST_READ_UINT32_LE (map.data + 4) == FOURCC_alac) { len -= 8; codec_config = - gst_buffer_copy_region ((GstBuffer *) codec_data, 0, 8, len); + gst_buffer_copy_region ((GstBuffer *) codec_data, + GST_BUFFER_COPY_MEMORY, 8, len); } else { codec_config = gst_buffer_ref ((GstBuffer *) codec_data); }