diff --git a/libtriple/playback_td.cpp b/libtriple/playback_td.cpp index 7d64622..a7b946a 100644 --- a/libtriple/playback_td.cpp +++ b/libtriple/playback_td.cpp @@ -107,7 +107,7 @@ void cPlayback::Close(void) //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; off_t r; @@ -355,7 +355,7 @@ static void playthread_cleanup_handler(void *) 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); apid = pid; diff --git a/libtriple/playback_td.h b/libtriple/playback_td.h index b6e30f1..f187ce1 100644 --- a/libtriple/playback_td.h +++ b/libtriple/playback_td.h @@ -98,8 +98,9 @@ class cPlayback bool Open(playmode_t PlayMode); void Close(void); - bool Start(char *filename, unsigned short vpid, int vtype, unsigned short apid, bool ac3); - bool SetAPid(unsigned short pid, bool ac3); + bool Start(char *filename, unsigned short vpid, int vtype, unsigned short apid, + int ac3, unsigned int duration); + bool SetAPid(unsigned short pid, int ac3); bool SetSpeed(int speed); bool GetSpeed(int &speed) const; bool GetPosition(int &position, int &duration); /* pos: current time in ms, dur: file length in ms */