summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <rishi@gnu.org>2012-11-09 16:31:05 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-11-12 10:18:11 +0100
commit17b943d532c20a41f8cd137ca89fd7be077cf6d8 (patch)
treec87d9b7fd09af0fd3df316cf2e684eb30cf81f23
parentc0ff8f6c6e1c056e4b87d6828bc29c71a5f51142 (diff)
vp8dec: Don't give up so easily if failed to decode a frame
https://bugzilla.gnome.org/show_bug.cgi?id=687436
-rw-r--r--ext/vpx/gstvp8dec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/vpx/gstvp8dec.c b/ext/vpx/gstvp8dec.c
index ed7e3f507..cf5b71fa6 100644
--- a/ext/vpx/gstvp8dec.c
+++ b/ext/vpx/gstvp8dec.c
@@ -514,9 +514,9 @@ gst_vp8_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
gst_buffer_unmap (frame->input_buffer, &minfo);
if (status) {
- GST_ELEMENT_ERROR (decoder, LIBRARY, ENCODE,
- ("Failed to decode frame"), ("%s", gst_vpx_error_name (status)));
- return GST_FLOW_ERROR;
+ GST_VIDEO_DECODER_ERROR (decoder, 1, LIBRARY, ENCODE,
+ ("Failed to decode frame"), ("%s", gst_vpx_error_name (status)), ret);
+ return ret;
}
img = vpx_codec_get_frame (&dec->decoder, &iter);