add cookie.patch thx DboxOldie

This commit is contained in:
max10
2016-04-03 00:06:31 +02:00
parent 747c5cb3f1
commit 182baf4e57
6 changed files with 28 additions and 11 deletions

View File

@@ -65,7 +65,7 @@ void *Player::playthread(void *arg)
pthread_exit(NULL);
}
bool Player::Open(const char *Url, bool _noprobe)
bool Player::Open(const char *Url, bool _noprobe, std::string headers)
{
fprintf(stderr, "URL=%s\n", Url);
@@ -89,7 +89,7 @@ bool Player::Open(const char *Url, bool _noprobe)
return false;
}
return input.Init(url.c_str());
return input.Init(url.c_str(), headers);
}
bool Player::Close()