mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 23:18:47 +00:00
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:
parent
704e5eb697
commit
cccf1891e2
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue