diff --git a/ChangeLog b/ChangeLog index 0973ad8a30..8eb312b1be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-13 Wim Taymans + + * gst/wavparse/gstwavparse.c: (gst_wavparse_stream_data): + Handle premature EOS gracefully. + 2006-06-13 Tim-Philipp Müller * gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek): diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 2917e9440e..69cb38ef9b 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -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;