mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
plugins: don't blit over plugin output every second
Origin commit data
------------------
Branch: ni/coolstream
Commit: e65cfee56f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-08-14 (Tue, 14 Aug 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -117,8 +117,12 @@ void* CLCD::TimeThread(void *)
|
|||||||
CLCD::getInstance()->showTime();
|
CLCD::getInstance()->showTime();
|
||||||
/* hack, just if we missed the blit() somewhere
|
/* hack, just if we missed the blit() somewhere
|
||||||
* this will update the framebuffer once per second */
|
* this will update the framebuffer once per second */
|
||||||
if (getenv("SPARK_NOBLIT") == NULL)
|
if (getenv("SPARK_NOBLIT") == NULL) {
|
||||||
CFrameBuffer::getInstance()->blit();
|
CFrameBuffer *fb = CFrameBuffer::getInstance();
|
||||||
|
/* plugin start locks the framebuffer... */
|
||||||
|
if (!fb->Locked())
|
||||||
|
fb->blit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@@ -588,10 +588,13 @@ void CPlugins::startPlugin(int number,int /*param*/)
|
|||||||
#else
|
#else
|
||||||
g_RCInput->clearRCMsg();
|
g_RCInput->clearRCMsg();
|
||||||
g_RCInput->stopInput();
|
g_RCInput->stopInput();
|
||||||
|
/* stop automatic updates etc. */
|
||||||
|
frameBuffer->Lock();
|
||||||
//frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t));
|
//frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t));
|
||||||
printf("Starting %s\n", plugin_list[number].pluginfile.c_str());
|
printf("Starting %s\n", plugin_list[number].pluginfile.c_str());
|
||||||
mysystem((char *) plugin_list[number].pluginfile.c_str(), NULL, NULL);
|
mysystem((char *) plugin_list[number].pluginfile.c_str(), NULL, NULL);
|
||||||
//frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t));
|
//frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t));
|
||||||
|
frameBuffer->Unlock();
|
||||||
frameBuffer->paintBackground();
|
frameBuffer->paintBackground();
|
||||||
g_RCInput->restartInput();
|
g_RCInput->restartInput();
|
||||||
g_RCInput->clearRCMsg();
|
g_RCInput->clearRCMsg();
|
||||||
|
Reference in New Issue
Block a user