summaryrefslogtreecommitdiffstats
path: root/gst/flx
diff options
context:
space:
mode:
authorSteve Baker <steve@stevebaker.org>2002-05-15 19:08:49 +0000
committerSteve Baker <steve@stevebaker.org>2002-05-15 19:08:49 +0000
commit163076dd9e52834c5afeccb77e419b3215ae8aeb (patch)
treeee5d009c9a63b3fc668d99f8f0476c6a358a744d /gst/flx
parentc622ee22a845296ab4454fc3ad8173f015148380 (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.c5
1 files changed, 3 insertions, 2 deletions
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;