libtriple: sync cPlayback with libcoolstream changes

This commit is contained in:
Stefan Seyfried
2011-02-20 18:19:06 +01:00
parent 556c6afe74
commit 9803550595
2 changed files with 5 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ void cPlayback::Close(void)
//Stop(); //Stop();
} }
bool cPlayback::Start(char *filename, unsigned short vp, int vtype, unsigned short ap, bool _ac3) bool cPlayback::Start(char *filename, unsigned short vp, int vtype, unsigned short ap, int _ac3, unsigned int)
{ {
struct stat s; struct stat s;
off_t r; off_t r;
@@ -355,7 +355,7 @@ static void playthread_cleanup_handler(void *)
dvrfd = -1; dvrfd = -1;
} }
bool cPlayback::SetAPid(unsigned short pid, bool _ac3) bool cPlayback::SetAPid(unsigned short pid, int _ac3)
{ {
lt_info("%s pid: 0x%04hx ac3: %d\n", __FUNCTION__, pid, _ac3); lt_info("%s pid: 0x%04hx ac3: %d\n", __FUNCTION__, pid, _ac3);
apid = pid; apid = pid;

View File

@@ -98,8 +98,9 @@ class cPlayback
bool Open(playmode_t PlayMode); bool Open(playmode_t PlayMode);
void Close(void); void Close(void);
bool Start(char *filename, unsigned short vpid, int vtype, unsigned short apid, bool ac3); bool Start(char *filename, unsigned short vpid, int vtype, unsigned short apid,
bool SetAPid(unsigned short pid, bool ac3); int ac3, unsigned int duration);
bool SetAPid(unsigned short pid, int ac3);
bool SetSpeed(int speed); bool SetSpeed(int speed);
bool GetSpeed(int &speed) const; bool GetSpeed(int &speed) const;
bool GetPosition(int &position, int &duration); /* pos: current time in ms, dur: file length in ms */ bool GetPosition(int &position, int &duration); /* pos: current time in ms, dur: file length in ms */