From 5984a1f3c2ce550c8cdf114933e6b0e4fde37586 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 11 Apr 2018 22:56:34 +0200 Subject: [PATCH] vorbisenc: do not map input buffer in WRITE mode --- ext/vorbis/gstvorbisenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index cad6d9ae13..681d75eb98 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c @@ -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));