diff options
author | Steve Baker <steve@stevebaker.org> | 2002-05-15 19:08:49 +0000 |
---|---|---|
committer | Steve Baker <steve@stevebaker.org> | 2002-05-15 19:08:49 +0000 |
commit | 9275ce0e157d95064ab6d5ea47f88c16df6598ec (patch) | |
tree | 4267d8b2597a0227fe8a60dbb6315c46fcf2183e /gst/flx | |
parent | 012aaa2cb0675d8c65e5d4f38f5b7e3f1975ac8a (diff) |
use new bytestream api
Original commit message from CVS:
use new bytestream api
Diffstat (limited to 'gst/flx')
-rw-r--r-- | gst/flx/gstflxdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c index 66079ab3b..1354139de 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; |