Skip to content

Commit c1139f6

Browse files
Dan AlbertDanAlbert
authored andcommitted
Increase warning level in native-codec.
1 parent 38c889d commit c1139f6

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
cmake_minimum_required(VERSION 3.22.1)
22

3-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -UNDEBUG")
3+
include(AppLibrary)
44

5-
add_library(native-codec-jni SHARED
6-
looper.cpp
7-
native-codec-jni.cpp)
5+
add_app_library(native-codec-jni SHARED
6+
looper.cpp
7+
native-codec-jni.cpp
8+
)
89

9-
# Include libraries needed for native-codec-jni lib
1010
target_link_libraries(native-codec-jni
11-
android
12-
log
13-
mediandk
14-
OpenMAXAL)
15-
11+
android
12+
log
13+
mediandk
14+
OpenMAXAL
15+
)

native-codec/app/src/main/cpp/native-codec-jni.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void mylooper::handle(int what, void* obj) {
199199
extern "C" {
200200

201201
jboolean 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
271271
void 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
313311
void 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

Comments
 (0)