Removed ALL the compile warnings!
This commit is contained in:
parent
b5a4ea1b93
commit
12a0c1942c
18 changed files with 218 additions and 211 deletions
|
@ -70,7 +70,7 @@ Socket::Connection Util::Stream::getLive(std::string streamname){
|
|||
Socket::Connection Util::Stream::getVod(std::string filename, std::string streamname){
|
||||
std::string name = "MistPlayer " + filename;
|
||||
std::string player_bin = Util::getMyPath() + "MistPlayer";
|
||||
char* const argv[] = {(char*)player_bin.c_str(), (char*)filename.c_str(), "-s", (char*)streamname.c_str(), NULL};
|
||||
char* const argv[] = {(char*)player_bin.c_str(), (char*)filename.c_str(), (char*)"-s", (char*)streamname.c_str(), (char*)0};
|
||||
int fdin = -1, fdout = -1, fderr = fileno(stderr);
|
||||
Util::Procs::StartPiped(name, argv, &fdin, &fdout, &fderr);
|
||||
// if StartPiped fails then fdin and fdout will be unmodified (-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue