mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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
------------------
Commit: e8e50a84f2
Author: yjogol <yjogol2@online.de>
Date: 2010-03-13 (Sat, 13 Mar 2010)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user