[vlc-devel] [PATCH 2/6] audiotrack: don't re-init to NULL

Thomas Guillem thomas at gllm.fr
Wed Mar 11 15:00:46 CET 2015


---
 modules/audio_output/audiotrack.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 3ee1fcf..922e8a2 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -275,7 +275,6 @@ InitJNIFields( audio_output_t *p_aout )
     GET_ID( GetMethodID, AudioTrack.writeV21, "write", "(Ljava/nio/ByteBuffer;II)I", false );
     if( jfields.AudioTrack.writeV21 )
     {
-        jfields.AudioTrack.write = NULL;
         GET_CONST_INT( AudioTrack.WRITE_NON_BLOCKING, "WRITE_NON_BLOCKING", true );
     } else
         GET_ID( GetMethodID, AudioTrack.write, "write", "([BII)I", true );
@@ -307,12 +306,6 @@ InitJNIFields( audio_output_t *p_aout )
                 "framePosition", "J", true );
         GET_ID( GetFieldID, AudioTimestamp.nanoTime,
                 "nanoTime", "J", true );
-    } else
-    {
-        jfields.AudioTimestamp.clazz = NULL;
-        jfields.AudioTimestamp.ctor = NULL;
-        jfields.AudioTimestamp.framePosition = NULL;
-        jfields.AudioTimestamp.nanoTime = NULL;
     }
 
     /* AudioFormat class init */
-- 
2.1.3




More information about the vlc-devel mailing list