[vlc-commits] audiotrack: better logs in case of error

Thomas Guillem git at videolan.org
Fri Jul 3 10:43:22 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul  3 09:38:40 2015 +0200| [e54be6c19029b97d9d472e5d87293584917eedb5] | committer: Thomas Guillem

audiotrack: better logs in case of error

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

 modules/audio_output/audiotrack.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 9dc4b9d..7689330 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -228,16 +228,16 @@ InitJNIFields( audio_output_t *p_aout, JNIEnv* env )
 } while( 0 )
 #define GET_CLASS( str, critical ) do { \
     clazz = (*env)->FindClass( env, (str) ); \
-    CHECK_EXCEPTION( str, critical ); \
+    CHECK_EXCEPTION( "FindClass(" str ")", critical ); \
 } while( 0 )
 #define GET_ID( get, id, str, args, critical ) do { \
     jfields.id = (*env)->get( env, clazz, (str), (args) ); \
-    CHECK_EXCEPTION( #get, critical ); \
+    CHECK_EXCEPTION( #get "(" #id ")", critical ); \
 } while( 0 )
 #define GET_CONST_INT( id, str, critical ) do { \
     field = NULL; \
     field = (*env)->GetStaticFieldID( env, clazz, (str), "I" ); \
-    CHECK_EXCEPTION( #id, critical ); \
+    CHECK_EXCEPTION( "GetStaticFieldID(" #id ")", critical ); \
     if( field ) \
     { \
         jfields.id = (*env)->GetStaticIntField( env, clazz, field ); \



More information about the vlc-commits mailing list