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:
Stefan Seyfried
2012-08-14 12:14:41 +02:00
parent e2056ab58a
commit df317d3103
2 changed files with 9 additions and 2 deletions

View File

@@ -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;
} }

View File

@@ -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();