projects
/
platform
/
upstream
/
gst-plugins-bad.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
05c1963
..
588a98f
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: