mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
tests: check return value when using gst_buffer_map.
https://bugzilla.gnome.org/show_bug.cgi?id=797366
This commit is contained in:
parent
254eb9507f
commit
2cdcca7aba
2 changed files with 4 additions and 2 deletions
|
@ -234,7 +234,8 @@ outputs_to_file (GstBuffer * buffer, FILE * file)
|
|||
size_t written;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
gst_buffer_map (buffer, &info, GST_MAP_READ);
|
||||
if (!gst_buffer_map (buffer, &info, GST_MAP_READ))
|
||||
return FALSE;
|
||||
|
||||
if (info.size <= 0 || !info.data)
|
||||
return FALSE;
|
||||
|
|
|
@ -279,7 +279,8 @@ outputs_to_file (GstBuffer * buffer, FILE * file)
|
|||
size_t written;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
gst_buffer_map (buffer, &info, GST_MAP_READ);
|
||||
if (!gst_buffer_map (buffer, &info, GST_MAP_READ))
|
||||
return FALSE;
|
||||
|
||||
if (info.size <= 0 || !info.data)
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue