[vlc-commits] mediacodec: more verbose in case of error

Thomas Guillem git at videolan.org
Wed May 13 11:23:34 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed May 13 11:22:59 2015 +0200| [0d92b77532efd9338334be8690f33d0459f3b81f] | committer: Thomas Guillem

mediacodec: more verbose in case of error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d92b77532efd9338334be8690f33d0459f3b81f
---

 modules/codec/omxil/android_mediacodec.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index 42014e5..0c70b6c 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -1603,6 +1603,8 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
                      * indefinitely and abort after 2seconds (100 * 2 * 10ms)
                      * without any data. Indeed, MediaCodec can fail without
                      * throwing any exception or error returns... */
+                    msg_Err(p_dec, "No output/input for %lld ms, abort",
+                                    i_attempts * timeout);
                     b_error = true;
                     break;
                 }
@@ -1615,7 +1617,11 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
     } while (p_block && i_input_ret == 0 && i_output_ret == 0);
 
     if (i_input_ret == -1 || i_output_ret == -1)
+    {
+        msg_Err(p_dec, "%s failed",
+                i_input_ret == -1 ? "PutInput" : "GetOutput");
         b_error = true;
+    }
 
 endclean:
 



More information about the vlc-commits mailing list