Skip to content

Commit 9b8fad7

Browse files
committed
audio/pygame: fix missing return in both get_pos/get_length (highlighted cause of a recent change in kivy 1.9)
1 parent a16427e commit 9b8fad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes/android/src/android/_android_sound_jni.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ int android_sound_get_pos(int channel) {
283283
aassert(mid);
284284
}
285285

286-
(*env)->CallStaticIntMethod(
286+
return (*env)->CallStaticIntMethod(
287287
env, cls, mid,
288288
channel);
289289
}
@@ -302,7 +302,7 @@ int android_sound_get_length(int channel) {
302302
aassert(mid);
303303
}
304304

305-
(*env)->CallStaticIntMethod(
305+
return (*env)->CallStaticIntMethod(
306306
env, cls, mid,
307307
channel);
308308
}

0 commit comments

Comments
 (0)