aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authordhewg2011-02-27 20:16:52 +0100
committerdhewg2011-03-02 23:18:33 +0100
commit807971f8af9430ee19f66c7bac7cc9566fccf432 (patch)
tree3b0754163359effa8f3eb33376f833e6030187f8 /backends
parentb1055a3c86028d517d54fbae0bef9c500facf8c7 (diff)
downloadscummvm-rg350-807971f8af9430ee19f66c7bac7cc9566fccf432.tar.gz
scummvm-rg350-807971f8af9430ee19f66c7bac7cc9566fccf432.tar.bz2
scummvm-rg350-807971f8af9430ee19f66c7bac7cc9566fccf432.zip
ANDROID: Don't use warning()/error() in a thread
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/android/android.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 57e84d07c6..f886347685 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -142,7 +142,7 @@ void *OSystem_Android::timerThreadFunc(void *arg) {
// renice this thread to boost the audio thread
if (setpriority(PRIO_PROCESS, 0, 19) < 0)
- warning("couldn't renice the timer thread");
+ LOGW("couldn't renice the timer thread");
JNI::attachThread();
@@ -250,7 +250,7 @@ void *OSystem_Android::audioThreadFunc(void *arg) {
written = JNI::writeAudio(env, bufa, offset, left);
if (written < 0) {
- error("AudioTrack error: %d", written);
+ LOGE("AudioTrack error: %d", written);
break;
}