mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
libspark: implement cVideo::GetVideoSystemFormatName()
Origin commit data
------------------
Branch: master
Commit: 4285d9449d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-08-26 (Sat, 26 Aug 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -380,6 +380,17 @@ int cVideo::GetVideoSystem(void)
|
||||
return VIDEO_STD_720P50;
|
||||
}
|
||||
|
||||
void cVideo::GetVideoSystemFormatName(cs_vs_format_t *format, int system)
|
||||
{
|
||||
if (system == -1)
|
||||
system = GetVideoSystem();
|
||||
if (system < 0 || system > VIDEO_STD_1080P50) {
|
||||
lt_info("%s: invalid system %d\n", __func__, system);
|
||||
strcpy(format->format, "invalid");
|
||||
} else
|
||||
strcpy(format->format, vid_modes[system]);
|
||||
}
|
||||
|
||||
int cVideo::getPlayState(void)
|
||||
{
|
||||
return playstate;
|
||||
|
Reference in New Issue
Block a user