Commit 5984a1f3 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸 Committed by Sebastian Dröge

vorbisenc: do not map input buffer in WRITE mode

parent 2f58fbec
......@@ -907,7 +907,7 @@ gst_vorbis_enc_handle_frame (GstAudioEncoder * enc, GstBuffer * buffer)
if (!buffer)
return gst_vorbis_enc_clear (vorbisenc);
gst_buffer_map (buffer, &map, GST_MAP_WRITE);
gst_buffer_map (buffer, &map, GST_MAP_READ);
/* data to encode */
size = map.size / (vorbisenc->channels * sizeof (float));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment