projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1702623
)
adapter: handle map failure
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 14 Jan 2013 16:00:23 +0000
(17:00 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 14 Jan 2013 16:00:23 +0000
(17:00 +0100)
libs/gst/base/gstadapter.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstadapter.c
b/libs/gst/base/gstadapter.c
index
74bcee0
..
71c546a
100644
(file)
--- a/
libs/gst/base/gstadapter.c
+++ b/
libs/gst/base/gstadapter.c
@@
-1044,7
+1044,9
@@
gst_adapter_masked_scan_uint32_peek (GstAdapter * adapter, guint32 mask,
gst_buffer_unmap (buf, &info);
buf = g->data;
- gst_buffer_map (buf, &info, GST_MAP_READ);
+ if (!gst_buffer_map (buf, &info, GST_MAP_READ))
+ return -1;
+
bsize = info.size;
bdata = info.data;
} while (TRUE);