mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
nhttpd:controlapi: activate videoformat to API again
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@478 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -709,9 +709,14 @@ void CControlAPI::AspectRatioCGI(CyhookHandler *hh)
|
||||
//-----------------------------------------------------------------------------
|
||||
void CControlAPI::VideoFormatCGI(CyhookHandler *hh)
|
||||
{
|
||||
// FIXME: not implemented
|
||||
hh->printf("Videoformat:%s\n",(NeutrinoAPI->getVideoAspectRatioAsString()).c_str());
|
||||
// hh->SendOk();
|
||||
if (hh->ParamList.empty() || hh->ParamList["1"] == "status") {
|
||||
hh->printf("%s",(NeutrinoAPI->getVideoAspectRatioAsString()).c_str());
|
||||
return;
|
||||
}
|
||||
if (NeutrinoAPI->setVideoAspectRatioAsString(hh->ParamList["1"]) != -1)
|
||||
hh->SendOk();
|
||||
else
|
||||
hh->SendError();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user