diff --git a/dom/plugins/base/android/ANPAudio.cpp b/dom/plugins/base/android/ANPAudio.cpp index bc47e8999e7a..dd4f0b29cdbe 100644 --- a/dom/plugins/base/android/ANPAudio.cpp +++ b/dom/plugins/base/android/ANPAudio.cpp @@ -122,8 +122,6 @@ public: NS_IMETHODIMP AudioRunnable::Run() { - PR_SetCurrentThreadName("Android Audio"); - JNIEnv* const jenv = mozilla::jni::GetEnvForThread(); mozilla::AutoLocalJNIFrame autoFrame(jenv, 2); @@ -321,7 +319,7 @@ anp_audio_start(ANPAudioTrack* s) RefPtr runnable = new AudioRunnable(s); nsCOMPtr thread; - NS_NewThread(getter_AddRefs(thread), runnable); + NS_NewNamedThread("Android Audio", getter_AddRefs(thread), runnable); } void