X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fgdi%2Fgrc.cpp;h=a45b3b1ec6feb386541c71a425bc8b00b870a9c5;hp=1f1b06a059cc6e7e4d4b416cbb1698d0c2622c80;hb=ba5ec76317a3bd96895506159b0d5bc1a1a6eecc;hpb=8e35a12e847196865cb09d15a06f477660c8b1fd diff --git a/lib/gdi/grc.cpp b/lib/gdi/grc.cpp index 1f1b06a..a45b3b1 100644 --- a/lib/gdi/grc.cpp +++ b/lib/gdi/grc.cpp @@ -164,7 +164,13 @@ void *gRC::thread() if (pthread_cond_timedwait(&cond, &mutex, &timeout) == ETIMEDOUT) { if (eApp && !eApp->isIdle()) - idle = 0; + { + int idle_count = eApp->idleCount(); + if (idle_count == m_prev_idle_count) + idle = 0; + else + m_prev_idle_count = idle_count; + } } if (!idle) @@ -603,7 +609,7 @@ gDC::~gDC() delete[] m_spinner_pic; } -void gDC::exec(gOpcode *o) +void gDC::exec(const gOpcode *o) { switch (o->opcode) {