diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-08-03 13:43:31 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-08-03 13:43:31 +0100 |
commit | 6cac2bff68270386ad9580e4a1ed17ed8cda9a68 (patch) | |
tree | f7837157c853aeb397975f856c40ed73fd398102 /ext/mpg123 | |
parent | e7a5cfec307c593d7d5b0b16d5d4483ed33e917b (diff) | |
download | gstreamer-plugins-bad-6cac2bff68270386ad9580e4a1ed17ed8cda9a68.tar.gz |
mpg123: map input buffer in READ mode, not WRITE mode
Makes things actually work.
Diffstat (limited to 'ext/mpg123')
-rw-r--r-- | ext/mpg123/gstmpg123audiodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mpg123/gstmpg123audiodec.c b/ext/mpg123/gstmpg123audiodec.c index ac0a61be1..ec6a2fc16 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; } |