From e597352d19cb38b839ef6a2c17a827dbd3c5d865 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Tue, 8 Feb 2005 18:51:25 +0000 Subject: ext/mplex/gstmplexibitstream.cc: Fix event handling (#165525). Original commit message from CVS: * ext/mplex/gstmplexibitstream.cc: Fix event handling (#165525). --- ext/mplex/gstmplexibitstream.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/mplex/gstmplexibitstream.cc b/ext/mplex/gstmplexibitstream.cc index d749fe2a..28c0ff0b 100644 --- a/ext/mplex/gstmplexibitstream.cc +++ b/ext/mplex/gstmplexibitstream.cc @@ -70,17 +70,15 @@ size_t GstMplexIBitStream::ReadStreamBytes (uint8_t * buf, size_t size) { guint8 * data; - guint read; if (eos) return 0; - if ((read = gst_bytestream_peek_bytes (bs, &data, size)) != size) { + while (!eos && (read = gst_bytestream_peek_bytes (bs, &data, size)) != size) { GstEvent * event; - guint pending; -- cgit v1.2.1