From 51f79914b5e08eb7fe5e3ac67a14dd2cf650b9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 3 Aug 2012 13:43:31 +0100 Subject: [PATCH] mpg123: map input buffer in READ mode, not WRITE mode Makes things actually work. --- ext/mpg123/gstmpg123audiodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mpg123/gstmpg123audiodec.c b/ext/mpg123/gstmpg123audiodec.c index ac0a61be19..ec6a2fc166 100644 --- a/ext/mpg123/gstmpg123audiodec.c +++ b/ext/mpg123/gstmpg123audiodec.c @@ -335,7 +335,7 @@ gst_mpg123_audio_dec_handle_frame (GstAudioDecoder * dec, GstBuffer * buffer) if (memory == NULL) return GST_FLOW_ERROR; - if (!gst_memory_map (memory, &info, GST_MAP_WRITE)) { + if (!gst_memory_map (memory, &info, GST_MAP_READ)) { gst_memory_unref (memory); return GST_FLOW_ERROR; }