libeplayer3: implement Output class

Origin commit data
------------------
Branch: master
Commit: cd3d91fa38
Author: martii <m4rtii@gmx.de>
Date: 2014-04-06 (Sun, 06 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-04-06 18:19:00 +02:00
parent 5b5164d224
commit 225ec050ae
13 changed files with 377 additions and 679 deletions

View File

@@ -77,7 +77,7 @@ static int CurrentPid = -1;
static int ManagerAdd(Player * context __attribute__((unused)), Track_t track)
{
Tracks[track.Id] = track;
Tracks[track.pid] = track;
context->playback->isAudio = 1;
return cERR_SUBTITLE_MGR_NO_ERROR;
@@ -92,7 +92,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;