porting cookie.patch to generic

This commit is contained in:
TangoCash
2016-04-03 09:35:35 +02:00
parent 182baf4e57
commit 36f199b2fa
4 changed files with 6 additions and 6 deletions

View File

@@ -15,10 +15,10 @@ void cPlayback::Close(void)
bool cPlayback::Start(std::string filename, std::string headers) bool cPlayback::Start(std::string filename, std::string headers)
{ {
Start((char *) filename.c_str(),0,0,0,0,0); return Start((char*) filename.c_str(),0,0,0,0,0, headers);
} }
bool cPlayback::Start(char * filename, int vpid, int vtype, int apid, int ac3, int duration) bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, int, std::string headers)
{ {
printf("%s:%s - filename=%s vpid=%u vtype=%d apid=%u ac3=%d duration=%i\n", printf("%s:%s - filename=%s vpid=%u vtype=%d apid=%u ac3=%d duration=%i\n",
FILENAME, __func__, filename, vpid, vtype, apid, ac3, duration); FILENAME, __func__, filename, vpid, vtype, apid, ac3, duration);

View File

@@ -22,7 +22,7 @@ class cPlayback
cPlayback(int); cPlayback(int);
bool Open(playmode_t PlayMode); bool Open(playmode_t PlayMode);
void Close(void); void Close(void);
bool Start(char *filename, int vpid, int vtype, int apid, int ac3, int duration); bool Start(char *filename, int vpid, int vtype, int apid, int ac3, int duration, std::string headers = "");
bool Start(std::string filename, std::string headers = ""); bool Start(std::string filename, std::string headers = "");
bool SetAPid(int pid, bool ac3); bool SetAPid(int pid, bool ac3);
bool SetSubtitlePid(int pid); bool SetSubtitlePid(int pid);

View File

@@ -350,10 +350,10 @@ void cPlayback::Close(void)
// start // start
bool cPlayback::Start(std::string filename, std::string headers) bool cPlayback::Start(std::string filename, std::string headers)
{ {
Start((char *) filename.c_str(),0,0,0,0,0); return Start((char*) filename.c_str(),0,0,0,0,0, headers);
} }
bool cPlayback::Start(char *filename, int /*vpid*/, int /*vtype*/, int /*apid*/, int /*ac3*/, int /*duration*/) bool cPlayback::Start(char *filename, int /*vpid*/, int /*vtype*/, int /*apid*/, int /*ac3*/, int /*duration*/, std::string headers)
{ {
lt_info( "%s:%s\n", FILENAME, __FUNCTION__); lt_info( "%s:%s\n", FILENAME, __FUNCTION__);

View File

@@ -55,7 +55,7 @@ class cPlayback
cPlayback(int); cPlayback(int);
bool Open(playmode_t PlayMode); bool Open(playmode_t PlayMode);
void Close(void); void Close(void);
bool Start(char *filename, int vpid, int vtype, int apid, int ac3, int duration); bool Start(char *filename, int vpid, int vtype, int apid, int ac3, int duration, std::string headers = "");
bool Start(std::string filename, std::string headers = ""); bool Start(std::string filename, std::string headers = "");
bool Play(void); bool Play(void);
bool SyncAV(void); bool SyncAV(void);