projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b6e0b7
)
jasperdec: don't fail hard on decoding error
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 9 Dec 2010 17:06:38 +0000
(18:06 +0100)
committer
Wim 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
patch
|
blob
|
history
diff --git
a/ext/jp2k/gstjasperdec.c
b/ext/jp2k/gstjasperdec.c
index 05c1963acd476301466bf995cee6ab07ee5cb12a..588a98ff4d61418fb4570910020f20da8de994df 100644
(file)
--- 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: