mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-07 16:05: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)
|
if (!buffer)
|
||||||
return gst_vorbis_enc_clear (vorbisenc);
|
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 */
|
/* data to encode */
|
||||||
size = map.size / (vorbisenc->channels * sizeof (float));
|
size = map.size / (vorbisenc->channels * sizeof (float));
|
||||||
|
|
Loading…
Reference in a new issue