mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
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.
This commit is contained in:
parent
94f778f952
commit
5e606453c0
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-06-16 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* 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.
|
||||
|
||||
2008-06-15 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst/matroska/matroska-demux.c: (gst_matroska_demux_reset),
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue