summaryrefslogtreecommitdiff
path: root/tests/simple-encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple-encoder.c')
-rw-r--r--tests/simple-encoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/simple-encoder.c b/tests/simple-encoder.c
index 9ae63d87..c94f3b5f 100644
--- a/tests/simple-encoder.c
+++ b/tests/simple-encoder.c
@@ -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;