ebml: small correction to previous commit
authorRené Stadler <rene.stadler@collabora.co.uk>
Fri, 21 Oct 2011 08:01:43 +0000 (10:01 +0200)
committerRené Stadler <rene.stadler@collabora.co.uk>
Fri, 21 Oct 2011 08:03:14 +0000 (10:03 +0200)
Signal a short read with UNEXPECTED, exactly like the peek_bytes function.

gst/matroska/matroska-read-common.c

index 276fa85..5fd178f 100644 (file)
@@ -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;
 }