Commit 44ea6f4c authored by Mathieu Duponchelle's avatar Mathieu Duponchelle

vorbisenc: do not map input buffer in WRITE mode

parent ac8215b9
......@@ -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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment