gst-plugins-base: gstaudiochannels: Handled buffer mapping failure
authorAshish Kumar <kr.ashish@samsung.com>
Wed, 25 Oct 2017 07:17:40 +0000 (12:47 +0530)
committerMathieu Duponchelle <mathieu@centricular.com>
Wed, 25 Oct 2017 11:04:28 +0000 (13:04 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=789458

gst-libs/gst/audio/audio-channels.c

index d00f0b9..5622bb0 100644 (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,