porting cookie.patch to generic

Origin commit data
------------------
Branch: master
Commit: 36f199b2fa
Author: TangoCash <eric@loxat.de>
Date: 2016-04-03 (Sun, 03 Apr 2016)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2016-04-03 09:35:35 +02:00
parent 462a59c225
commit a5b4f142f5
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)
{
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",
FILENAME, __func__, filename, vpid, vtype, apid, ac3, duration);

View File

@@ -22,7 +22,7 @@ class cPlayback
cPlayback(int);
bool Open(playmode_t PlayMode);
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 SetAPid(int pid, bool ac3);
bool SetSubtitlePid(int pid);

View File

@@ -350,10 +350,10 @@ void cPlayback::Close(void)
// start
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__);

View File

@@ -55,7 +55,7 @@ class cPlayback
cPlayback(int);
bool Open(playmode_t PlayMode);
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 Play(void);
bool SyncAV(void);