From 0c36c70f63ddc2e8689fa3762e4e21fa572a1dd7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 9 Dec 2010 18:06:38 +0100 Subject: [PATCH] jasperdec: don't fail hard on decoding error don't post an error and return GST_FLOW_ERROR on a simple decoding error. We can just resume and continue decoding the next image. --- ext/jp2k/gstjasperdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/jp2k/gstjasperdec.c b/ext/jp2k/gstjasperdec.c index 05c1963acd..588a98ff4d 100644 --- a/ext/jp2k/gstjasperdec.c +++ b/ext/jp2k/gstjasperdec.c @@ -535,8 +535,8 @@ fail: if (*outbuf) gst_buffer_unref (*outbuf); *outbuf = NULL; - GST_ELEMENT_ERROR (dec, STREAM, DECODE, (NULL), (NULL)); - ret = GST_FLOW_ERROR; + GST_ELEMENT_WARNING (dec, STREAM, DECODE, (NULL), (NULL)); + ret = GST_FLOW_OK; goto done; } no_buffer: