mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
mpg123: map input buffer in READ mode, not WRITE mode
Makes things actually work.
This commit is contained in:
parent
a752d5840f
commit
51f79914b5
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ gst_mpg123_audio_dec_handle_frame (GstAudioDecoder * dec, GstBuffer * buffer)
|
||||||
if (memory == NULL)
|
if (memory == NULL)
|
||||||
return GST_FLOW_ERROR;
|
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);
|
gst_memory_unref (memory);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue