summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-02-08 18:51:25 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-02-08 18:51:25 +0000
commite597352d19cb38b839ef6a2c17a827dbd3c5d865 (patch)
treeca64060577f55af6ad4f368bffbff832cded7680 /ext
parentebb9face416757a5e93fd2bfbb14afc712b1802c (diff)
downloadgst-plugins-bad-e597352d19cb38b839ef6a2c17a827dbd3c5d865.tar.gz
gst-plugins-bad-e597352d19cb38b839ef6a2c17a827dbd3c5d865.tar.bz2
gst-plugins-bad-e597352d19cb38b839ef6a2c17a827dbd3c5d865.zip
ext/mplex/gstmplexibitstream.cc: Fix event handling (#165525).
Original commit message from CVS: * ext/mplex/gstmplexibitstream.cc: Fix event handling (#165525).
Diffstat (limited to 'ext')
-rw-r--r--ext/mplex/gstmplexibitstream.cc4
1 files changed, 1 insertions, 3 deletions
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;