qtmux: fix ALAC muxing
authorTim-Philipp Müller <tim@centricular.com>
Thu, 25 Dec 2014 21:32:40 +0000 (21:32 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 25 Dec 2014 21:37:49 +0000 (21:37 +0000)
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

gst/isomp4/gstqtmux.c

index fc747ed..6614ba4 100644 (file)
@@ -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);
     }