Ticket #8863: mythsystem_liirc_locking.diff
File mythsystem_liirc_locking.diff, 1.1 KB (added by , 14 years ago) |
---|
-
trunk/mythtv/libs/libmythdb/mythsystem.cpp
42 42 #include "mythverbose.h" 43 43 #include "exitcodes.h" 44 44 45 #if def USE_LIRC46 #include " lircevent.h"45 #if CONFIG_LIRC 46 #include "../libmythui/lircevent.h" 47 47 #endif 48 48 49 49 #ifdef USE_JOYSTICK_MENU … … 251 251 } 252 252 253 253 myth_system_pre_flags( flags, ready_to_lock ); 254 255 #if CONFIG_LIRC 256 bool lirc_lock_flag = !(flags & MYTH_SYSTEM_DONT_BLOCK_LIRC); 257 LircEventLock lirc_lock(lirc_lock_flag && ready_to_lock); 258 #endif 259 254 260 #ifndef USING_MINGW 255 261 pid_t pid; 256 262 … … 302 308 { 303 309 ready_to_lock = gCoreContext->HasGUI() && gCoreContext->IsUIThread(); 304 310 305 #ifdef USE_LIRC306 bool lirc_lock_flag = !(flags & MYTH_SYSTEM_DONT_BLOCK_LIRC);307 LircEventLock lirc_lock(lirc_lock_flag && ready_to_lock);308 #endif309 310 311 #ifdef USE_JOYSTICK_MENU 311 312 bool joy_lock_flag = !(flags & MYTH_SYSTEM_DONT_BLOCK_JOYSTICK_MENU); 312 313 JoystickMenuEventLock joystick_lock(joy_lock_flag && ready_to_lock);