[gst-cvs] CVS: gstreamer/libs/bytestream gstbytestream.c,1.1.2.15,1.1.2.16
Wim Taymans
wtay at users.sourceforge.net
Sun Oct 14 13:41:01 PDT 2001
Update of /cvsroot/gstreamer/gstreamer/libs/bytestream
In directory usw-pr-cvs1:/tmp/cvs-serv3055
Modified Files:
Tag: BRANCH-EVENTS1
gstbytestream.c
Log Message:
Make peek_bytes clear the previously assembled bytes.
Index: gstbytestream.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/libs/bytestream/Attic/gstbytestream.c,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.16
diff -u -d -r1.1.2.15 -r1.1.2.16
--- gstbytestream.c 2001/10/14 12:28:58 1.1.2.15
+++ gstbytestream.c 2001/10/14 20:40:29 1.1.2.16
@@ -235,6 +235,10 @@
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);
More information about the Gstreamer-commits
mailing list