jasperdec: don't fail hard on decoding error
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 9 Dec 2010 17:06:38 +0000 (18:06 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 9 Dec 2010 17:09:18 +0000 (18:09 +0100)
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

index 05c1963..588a98f 100644 (file)
@@ -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: