Make peek_bytes clear the previously assembled bytes.

Original commit message from CVS:
Make peek_bytes clear the previously assembled bytes.
This commit is contained in:
Wim Taymans 2001-10-14 20:40:29 +00:00
parent 704e5eb697
commit cccf1891e2

View file

@ -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);