mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-07 05:38:28 +02:00
Merge branch 'check/dvbsi++' commit c16f636011
Conflicts:
src/eitd/sectionsd.cpp
src/gui/audioplayer.cpp
src/gui/channellist.cpp
src/gui/components/Makefile.am
src/gui/components/cc.h
src/gui/components/components.cpp
src/gui/moviebrowser.cpp
src/gui/scan.cpp
src/neutrino.cpp
src/zapit/src/bouquets.cpp
src/zapit/src/getservices.cpp
src/zapit/src/transponder.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0cf191822a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-02-21 (Thu, 21 Feb 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1466,10 +1466,23 @@ void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
|
||||
#ifdef SCREENSHOT
|
||||
void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
{
|
||||
CScreenShot * sc = new CScreenShot("/tmp/screenshot.png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
|
||||
sc->EnableOSD(true);
|
||||
bool enableOSD = true;
|
||||
bool enableVideo = true;
|
||||
std::string filename = "screenshot";
|
||||
|
||||
if(hh->ParamList["osd"] == "0")
|
||||
enableOSD = false;
|
||||
if(hh->ParamList["video"] == "0")
|
||||
enableVideo = false;
|
||||
if(hh->ParamList["name"] != "")
|
||||
filename = hh->ParamList["name"];
|
||||
|
||||
CScreenShot * sc = new CScreenShot("/tmp/" + filename + ".png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
|
||||
sc->EnableOSD(enableOSD);
|
||||
sc->EnableVideo(enableVideo);
|
||||
sc->Start();
|
||||
hh->SendOk();
|
||||
|
||||
hh->SendOk(); // FIXME what if sc->Start() failed?
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user