summaryrefslogtreecommitdiff
path: root/ext/jp2k
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-12-09 18:06:38 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2010-12-09 18:09:18 +0100
commit0c36c70f63ddc2e8689fa3762e4e21fa572a1dd7 (patch)
tree653d685e8dc83e94aa902d20cc69bf0b08ca7e5e /ext/jp2k
parent0b6e0b7b1397834c7e0e563f115bd4402b43173b (diff)
downloadgstreamer-plugins-bad-0c36c70f63ddc2e8689fa3762e4e21fa572a1dd7.tar.gz
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.
Diffstat (limited to 'ext/jp2k')
-rw-r--r--ext/jp2k/gstjasperdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/jp2k/gstjasperdec.c b/ext/jp2k/gstjasperdec.c
index 05c1963ac..588a98ff4 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: