mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
Merge branch 'ni/tuxbox' into ni/mp/tuxbox
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6dd6df52fb
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-18 (Mon, 18 Sep 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2098,18 +2098,21 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
if(!hh->ParamList["name"].empty())
|
||||
filename = hh->ParamList["name"];
|
||||
|
||||
CScreenShot * sc = new CScreenShot("/tmp/" + filename + ".png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
|
||||
sc->EnableOSD(enableOSD);
|
||||
sc->EnableVideo(enableVideo);
|
||||
CScreenShot * screenshot = new CScreenShot("/tmp/" + filename + ".png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
|
||||
if(screenshot){
|
||||
screenshot->EnableOSD(enableOSD);
|
||||
screenshot->EnableVideo(enableVideo);
|
||||
#if 0
|
||||
sc->Start();
|
||||
hh->SendOk(); // FIXME what if sc->Start() failed?
|
||||
screenshot->Start();
|
||||
hh->SendOk(); // FIXME what if screenshot->Start() failed?
|
||||
#else
|
||||
if (sc->StartSync())
|
||||
hh->SendOk();
|
||||
else
|
||||
hh->SendError();
|
||||
if (screenshot->StartSync())
|
||||
hh->SendOk();
|
||||
else
|
||||
hh->SendError();
|
||||
#endif
|
||||
delete screenshot;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user