From 9275ce0e157d95064ab6d5ea47f88c16df6598ec Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Wed, 15 May 2002 19:08:49 +0000 Subject: use new bytestream api Original commit message from CVS: use new bytestream api --- gst/flx/gstflxdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gst/flx') diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c index 66079ab3..1354139d 100644 --- a/gst/flx/gstflxdec.c +++ b/gst/flx/gstflxdec.c @@ -435,11 +435,12 @@ static GstBuffer* flx_get_data(GstFlxDec *flxdec, gulong size) { GstBuffer *retbuf; + guint32 got_bytes; g_return_val_if_fail (flxdec != NULL, NULL); - retbuf = gst_bytestream_read (flxdec->bs, size); - if (!retbuf) { + got_bytes = gst_bytestream_read (flxdec->bs, &retbuf, size); + if (got_bytes < size) { GstEvent *event; guint32 remaining; -- cgit v1.2.1