From 5e606453c015993d4367003a077ae627d3b9eb65 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Mon, 16 Jun 2008 09:54:27 +0000 Subject: gst/matroska/ebml-read.c: Return GST_FLOW_UNEXPECTED instead of GST_FLOW_ERROR on short reads. Original commit message from CVS: * gst/matroska/ebml-read.c: (gst_ebml_read_peek_bytes): Return GST_FLOW_UNEXPECTED instead of GST_FLOW_ERROR on short reads. If we get less bytes than requested we can't do anything except doing our EOS logic. --- gst/matroska/ebml-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst') diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c index fc0427e9..82d8217a 100644 --- a/gst/matroska/ebml-read.c +++ b/gst/matroska/ebml-read.c @@ -266,7 +266,7 @@ gst_ebml_read_peek_bytes (GstEbmlRead * ebml, guint size, GstBuffer ** p_buf, *p_buf = NULL; if (bytes) *bytes = NULL; - return GST_FLOW_ERROR; + return GST_FLOW_UNEXPECTED; } if (p_buf) -- cgit