git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix hardcoded interface handling in wireless plugin
[enigma2.git]
/
lib
/
gdi
/
grc.cpp
diff --git
a/lib/gdi/grc.cpp
b/lib/gdi/grc.cpp
index ef75aacea6e33f0ac42ae4cd293bf57cda0356da..736630a87b912fd85aa043fb36bc6e8748d93e02 100644
(file)
--- a/
lib/gdi/grc.cpp
+++ b/
lib/gdi/grc.cpp
@@
-63,6
+63,7
@@
void gRC::submit(const gOpcode &o)
if ( tmp == rp )
{
#ifndef SYNC_PAINT
if ( tmp == rp )
{
#ifndef SYNC_PAINT
+ pthread_cond_signal(&cond); // wakeup gdi thread
pthread_mutex_unlock(&mutex);
#else
thread();
pthread_mutex_unlock(&mutex);
#else
thread();
@@
-115,7
+116,11
@@
void *gRC::thread()
else if (o.opcode==gOpcode::notify)
need_notify = 1;
else
else if (o.opcode==gOpcode::notify)
need_notify = 1;
else
+ {
o.dc->exec(&o);
o.dc->exec(&o);
+ // o.dc is a gDC* filled with grabref... so we must release it here
+ o.dc->Release();
+ }
}
else
{
}
else
{