avoid overloaded casting pun tripping compiler
[goodguy/history.git] / cinelerra-5.1 / cinelerra / androidcontrol.C
index 784dea2313a5732dc0e74953c037a22f729552a7..0417ceb45ddb7b76856c9727b835ebb004df358c 100644 (file)
@@ -59,7 +59,7 @@ bool AndroidControl::is_msg(const char *cp)
 void AndroidControl::press(int key)
 {
 // printf("press 0x%04x\n",key);
-       if( mwindow_gui->keyboard_listener(key) ) return;
+       if( mwindow_gui->key_listener(key) ) return;
        mwindow_gui->remote_control->remote_key(key);
 }
 
@@ -143,7 +143,7 @@ AndroidControl::~AndroidControl()
        if( Thread::running() ) {
                done = 1;
                Thread::cancel();
-               Thread::join();
        }
+       Thread::join();
 }