mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
nhttpd/tuxboxapi/coolstream/controlapi.cpp: create screenshot in sync mode
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*/);
|
CScreenShot * sc = new CScreenShot("/tmp/" + filename + ".png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
|
||||||
sc->EnableOSD(enableOSD);
|
sc->EnableOSD(enableOSD);
|
||||||
sc->EnableVideo(enableVideo);
|
sc->EnableVideo(enableVideo);
|
||||||
|
#if 0
|
||||||
sc->Start();
|
sc->Start();
|
||||||
|
|
||||||
hh->SendOk(); // FIXME what if sc->Start() failed?
|
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