From 5baca05ec38e507352a178b5faf4eed1d85e1479 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Fri, 21 Oct 2011 10:01:43 +0200 Subject: [PATCH] ebml: small correction to previous commit Signal a short read with UNEXPECTED, exactly like the peek_bytes function. --- gst/matroska/matroska-read-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/matroska/matroska-read-common.c b/gst/matroska/matroska-read-common.c index 276fa85..5fd178f 100644 --- a/gst/matroska/matroska-read-common.c +++ b/gst/matroska/matroska-read-common.c @@ -1553,7 +1553,7 @@ gst_matroska_read_common_peek_adapter (GstMatroskaReadCommon * common, guint { *data = gst_adapter_peek (common->adapter, peek); if (*data == NULL) - return GST_FLOW_ERROR; + return GST_FLOW_UNEXPECTED; return GST_FLOW_OK; } -- 2.7.4