mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 23:18:47 +00:00
vorbisenc: do not map input buffer in WRITE mode
This commit is contained in:
parent
2f58fbecdf
commit
5984a1f3c2
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue