update for memory api changes

This commit is contained in:
Wim Taymans 2012-03-20 10:24:05 +01:00
parent b8869d285b
commit 846f309522

View file

@ -5255,7 +5255,8 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
auds.size = GST_READ_UINT16_LE (data + 16); auds.size = GST_READ_UINT16_LE (data + 16);
/* 18 is the waveformatex size */ /* 18 is the waveformatex size */
codec_data = gst_buffer_new_wrapped_full (data + 18, NULL, 0, auds.size); codec_data = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY,
data + 18, auds.size, 0, auds.size, NULL, NULL);
if (riff_audio_fmt) if (riff_audio_fmt)
*riff_audio_fmt = auds.format; *riff_audio_fmt = auds.format;