gst-plugins-base: gstaudiochannels: Handled buffer mapping failure

https://bugzilla.gnome.org/show_bug.cgi?id=789458
This commit is contained in:
Ashish Kumar 2017-10-25 12:47:40 +05:30 committed by Mathieu Duponchelle
parent 6fd8d78d8b
commit 346c24dc4b

View file

@ -277,7 +277,8 @@ gst_audio_buffer_reorder_channels (GstBuffer * buffer,
if (gst_audio_channel_positions_equal (from, to, channels))
return TRUE;
gst_buffer_map (buffer, &info, GST_MAP_READWRITE);
if (!gst_buffer_map (buffer, &info, GST_MAP_READWRITE))
return FALSE;
ret =
gst_audio_reorder_channels (info.data, info.size, format, channels, from,