From 44ea6f4c06e2cfb417e1693c6e63cca76fca72ab 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 cad6d9a..681d75e 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)); -- 2.7.4