gst/wavparse/gstwavparse.c: Handle premature EOS gracefully.

Original commit message from CVS:
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_data):
Handle premature EOS gracefully.
This commit is contained in:
Wim Taymans 2006-06-13 17:05:25 +00:00
parent a1d0655f73
commit 6de492dea8
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-06-13 Wim Taymans <wim@fluendo.com>
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_data):
Handle premature EOS gracefully.
2006-06-13 Tim-Philipp Müller <tim at centricular dot net>
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek):

View file

@ -1450,6 +1450,10 @@ found_eos:
}
pull_error:
{
/* check if we got EOS */
if (res == GST_FLOW_UNEXPECTED)
goto found_eos;
GST_DEBUG_OBJECT (wav, "Error getting %" G_GINT64_FORMAT " bytes from the "
"sinkpad (dataleft = %" G_GINT64_FORMAT ")", desired, wav->dataleft);
return res;