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:
a0e8e56
)
add more checks
author
Benjamin Otte
<otte@gnome.org>
Wed, 3 Dec 2003 02:43:56 +0000
(
02:43
+0000)
committer
Benjamin Otte
<otte@gnome.org>
Wed, 3 Dec 2003 02:43:56 +0000
(
02:43
+0000)
Original commit message from CVS:
add more checks
libs/gst/bytestream/bytestream.c
patch
|
blob
|
history
diff --git
a/libs/gst/bytestream/bytestream.c
b/libs/gst/bytestream/bytestream.c
index
352551a
..
32f6070
100644
(file)
--- a/
libs/gst/bytestream/bytestream.c
+++ b/
libs/gst/bytestream/bytestream.c
@@
-252,6
+252,7
@@
gst_bytestream_peek (GstByteStream *bs, GstBuffer **buf, guint32 len)
GstBuffer *headbuf, *retbuf = NULL;
g_return_val_if_fail (bs != NULL, 0);
+ g_return_val_if_fail (buf != NULL, 0);
g_return_val_if_fail (len > 0, 0);
GST_DEBUG ("peek: asking for %d bytes", len);
@@
-323,6
+324,7
@@
gst_bytestream_peek_bytes (GstByteStream *bs, guint8** data, guint32 len)
GstBuffer *headbuf;
g_return_val_if_fail (bs != NULL, 0);
+ g_return_val_if_fail (data != NULL, 0);
g_return_val_if_fail (len > 0, 0);
GST_DEBUG ("peek_bytes: asking for %d bytes", len);