mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
libeplayer3: implement Output class
This commit is contained in:
@@ -76,7 +76,7 @@ static std::map<int,Track_t> Tracks;
|
||||
|
||||
static int ManagerAdd(Player * context __attribute__((unused)), Track_t track)
|
||||
{
|
||||
Tracks[track.Id] = track;
|
||||
Tracks[track.pid] = track;
|
||||
|
||||
return cERR_CHAPTER_MGR_NO_ERROR;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ static char **ManagerList(Player * context __attribute__ ((unused)))
|
||||
{
|
||||
size_t len = it->second.Name.length() + 20;
|
||||
char tmp[len];
|
||||
snprintf(tmp, len, "%d %s\n", it->second.Id, it->second.Name.c_str());
|
||||
snprintf(tmp, len, "%d %s\n", it->second.pid, it->second.Name.c_str());
|
||||
tracklist[j] = strdup(tmp);
|
||||
tracklist[j + 1] = strdup("");
|
||||
j += 2;
|
||||
|
Reference in New Issue
Block a user