@@ -199,7 +199,7 @@ void mylooper::handle(int what, void* obj) {
199199extern " C" {
200200
201201jboolean Java_com_example_nativecodec_NativeCodec_createStreamingMediaPlayer (
202- JNIEnv* env, jclass clazz , jobject assetMgr, jstring filename) {
202+ JNIEnv* env, jclass, jobject assetMgr, jstring filename) {
203203 LOGV (" @@@ create" );
204204
205205 // convert Java string to UTF-8
@@ -269,7 +269,7 @@ jboolean Java_com_example_nativecodec_NativeCodec_createStreamingMediaPlayer(
269269
270270// set the playing state for the streaming media player
271271void Java_com_example_nativecodec_NativeCodec_setPlayingStreamingMediaPlayer (
272- JNIEnv* env , jclass clazz , jboolean isPlaying) {
272+ JNIEnv*, jclass, jboolean isPlaying) {
273273 LOGV (" @@@ playpause: %d" , isPlaying);
274274 if (mlooper) {
275275 if (isPlaying) {
@@ -281,8 +281,7 @@ void Java_com_example_nativecodec_NativeCodec_setPlayingStreamingMediaPlayer(
281281}
282282
283283// shut down the native media system
284- void Java_com_example_nativecodec_NativeCodec_shutdown (JNIEnv* env,
285- jclass clazz) {
284+ void Java_com_example_nativecodec_NativeCodec_shutdown (JNIEnv*, jclass) {
286285 LOGV (" @@@ shutdown" );
287286 if (mlooper) {
288287 mlooper->post (kMsgDecodeDone , &data, true /* flush */ );
@@ -297,8 +296,7 @@ void Java_com_example_nativecodec_NativeCodec_shutdown(JNIEnv* env,
297296}
298297
299298// set the surface
300- void Java_com_example_nativecodec_NativeCodec_setSurface (JNIEnv* env,
301- jclass clazz,
299+ void Java_com_example_nativecodec_NativeCodec_setSurface (JNIEnv* env, jclass,
302300 jobject surface) {
303301 // obtain a native window from a Java surface
304302 if (data.window ) {
@@ -311,7 +309,7 @@ void Java_com_example_nativecodec_NativeCodec_setSurface(JNIEnv* env,
311309
312310// rewind the streaming media player
313311void Java_com_example_nativecodec_NativeCodec_rewindStreamingMediaPlayer (
314- JNIEnv* env , jclass clazz ) {
312+ JNIEnv*, jclass) {
315313 LOGV (" @@@ rewind" );
316314 if (mlooper) {
317315 mlooper->post (kMsgSeek , &data);
0 commit comments