commit | 5984a1f3c2ce550c8cdf114933e6b0e4fde37586 | [log] [tgz] |
---|---|---|
author | Mathieu Duponchelle <mathieu@centricular.com> | Wed Apr 11 22:56:34 2018 +0200 |
committer | Sebastian Dröge <sebastian@centricular.com> | Mon Apr 16 11:07:04 2018 +0300 |
tree | e28d545217e66bc8b8cd5435ed4d7813b8ca9542 | |
parent | 2f58fbecdfd9afd7b29912a4fb52bf353d978df3 [diff] |
vorbisenc: do not map input buffer in WRITE mode
diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index cad6d9a..681d75e 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c
@@ -907,7 +907,7 @@ 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));