mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
nhttpd/tuxboxapi/coolstream/controlapi.cpp: create screenshot in sync mode
Origin commit data
------------------
Branch: ni/coolstream
Commit: 370e3dd690
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-03-19 (Tue, 19 Mar 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1477,9 +1477,15 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
CScreenShot * sc = new CScreenShot("/tmp/" + filename + ".png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
|
||||
sc->EnableOSD(enableOSD);
|
||||
sc->EnableVideo(enableVideo);
|
||||
#if 0
|
||||
sc->Start();
|
||||
|
||||
hh->SendOk(); // FIXME what if sc->Start() failed?
|
||||
#else
|
||||
if (sc->StartSync())
|
||||
hh->SendOk();
|
||||
else
|
||||
hh->SendError();
|
||||
#endif
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user