nhttpd:controlapi: add aspectratio to API again

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@477 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: e8e50a84f2
Author: yjogol <yjogol2@online.de>
Date: 2010-03-13 (Sat, 13 Mar 2010)



------------------
This commit was generated by Migit
This commit is contained in:
yjogol
2010-03-13 07:44:07 +00:00
parent dfb8bb0e44
commit 168d78506e
6 changed files with 45 additions and 13 deletions

View File

@@ -679,13 +679,7 @@ std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, s
hh->ParamList["VideoFormat"] = string_printf("%d x %d", bitInfo[0], bitInfo[1] );
hh->ParamList["BitRate"] = string_printf("%d\n", bitInfo[4]*50);
switch ( bitInfo[2] ) //format
{
case 2: hh->ParamList["AspectRatio"] = "4:3"; break;
case 3: hh->ParamList["AspectRatio"] = "16:9"; break;
case 4: hh->ParamList["AspectRatio"] = "2.21:1"; break;
default: hh->ParamList["AspectRatio"]= "unknown"; break;
}
hh->ParamList["AspectRatio"] = NeutrinoAPI->getVideoAspectRatioAsString();
switch ( bitInfo[3] ) //fps
{