add cookie.patch thx DboxOldie

Origin commit data
------------------
Branch: master
Commit: 182baf4e57
Author: max_10 <max_10@gmx.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:
max_10
2016-04-03 00:06:31 +02:00
parent be1da38d90
commit 462a59c225
6 changed files with 28 additions and 11 deletions

View File

@@ -54,10 +54,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)
bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, int, std::string headers)
{
bool ret = false;
bool isHTTP = false;
@@ -82,7 +82,7 @@ bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, in
} else
isHTTP = true;
if (player->Open(file.c_str(), no_probe)) {
if (player->Open(file.c_str(), no_probe, headers)) {
if (pm == PLAYMODE_TS) {
struct stat64 s;
if (!stat64(file.c_str(), &s))