[vlc-commits] audiotrack: don't re-init to NULL
Thomas Guillem
git at videolan.org
Wed Mar 11 15:21:06 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 11 15:00:46 2015 +0100| [f6c3b064cfe24e91d0dba3bc533c1995d1687bb7] | committer: Jean-Baptiste Kempf
audiotrack: don't re-init to NULL
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6c3b064cfe24e91d0dba3bc533c1995d1687bb7
---
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 */
More information about the vlc-commits
mailing list