Commit f6c3b064 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

audiotrack: don't re-init to NULL

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b4d7ab2b
...@@ -275,7 +275,6 @@ InitJNIFields( audio_output_t *p_aout ) ...@@ -275,7 +275,6 @@ InitJNIFields( audio_output_t *p_aout )
GET_ID( GetMethodID, AudioTrack.writeV21, "write", "(Ljava/nio/ByteBuffer;II)I", false ); GET_ID( GetMethodID, AudioTrack.writeV21, "write", "(Ljava/nio/ByteBuffer;II)I", false );
if( jfields.AudioTrack.writeV21 ) if( jfields.AudioTrack.writeV21 )
{ {
jfields.AudioTrack.write = NULL;
GET_CONST_INT( AudioTrack.WRITE_NON_BLOCKING, "WRITE_NON_BLOCKING", true ); GET_CONST_INT( AudioTrack.WRITE_NON_BLOCKING, "WRITE_NON_BLOCKING", true );
} else } else
GET_ID( GetMethodID, AudioTrack.write, "write", "([BII)I", true ); GET_ID( GetMethodID, AudioTrack.write, "write", "([BII)I", true );
...@@ -307,12 +306,6 @@ InitJNIFields( audio_output_t *p_aout ) ...@@ -307,12 +306,6 @@ InitJNIFields( audio_output_t *p_aout )
"framePosition", "J", true ); "framePosition", "J", true );
GET_ID( GetFieldID, AudioTimestamp.nanoTime, GET_ID( GetFieldID, AudioTimestamp.nanoTime,
"nanoTime", "J", true ); "nanoTime", "J", true );
} else
{
jfields.AudioTimestamp.clazz = NULL;
jfields.AudioTimestamp.ctor = NULL;
jfields.AudioTimestamp.framePosition = NULL;
jfields.AudioTimestamp.nanoTime = NULL;
} }
/* AudioFormat class init */ /* AudioFormat class init */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment