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:
704e5eb
)
Make peek_bytes clear the previously assembled bytes.
author
Wim Taymans
<wim.taymans@gmail.com>
Sun, 14 Oct 2001 20:40:29 +0000
(20:40 +0000)
committer
Wim Taymans
<wim.taymans@gmail.com>
Sun, 14 Oct 2001 20:40:29 +0000
(20:40 +0000)
Original commit message from CVS:
Make peek_bytes clear the previously assembled bytes.
libs/bytestream/gstbytestream.c
patch
|
blob
|
history
diff --git
a/libs/bytestream/gstbytestream.c
b/libs/bytestream/gstbytestream.c
index 19796f1751f1d5b52f233f0f0ed1ce4fecdc531d..6f4d18a3f1bed0f4acb2ba7f38d9343e3cf4ecba 100644
(file)
--- a/
libs/bytestream/gstbytestream.c
+++ b/
libs/bytestream/gstbytestream.c
@@
-235,6
+235,10
@@
gst_bytestream_peek_bytes (GstByteStream * bs, guint32 len)
g_return_val_if_fail (len > 0, NULL);
bs_print ("peek_bytes: asking for %d bytes\n", len);
+ if (bs->assembled) {
+ g_free (bs->assembled);
+ bs->assembled = NULL;
+ }
// make sure we have enough
bs_print ("peek_bytes: there are %d bytes in the list\n", bs->listavail);