summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-06-13 17:05:25 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-06-13 17:05:25 +0000
commit6de492dea85da7e39c5df864a83802cf3e46b93f (patch)
tree4e44b39d2dab09c981853ea7a73a25a1fbf0341d /gst
parenta1d0655f73773a0058f692ff0651037f785e8865 (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/wavparse/gstwavparse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index 2917e944..69cb38ef 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;