Some static/non-static fixes to procs/stream library, updated converter to make use of getOutputOf function instead of re-implementing this.
This commit is contained in:
parent
d7e9029609
commit
6675b647b8
4 changed files with 10 additions and 25 deletions
|
@ -39,9 +39,9 @@ Socket::Connection Util::Stream::getLive(std::string streamname){
|
|||
Socket::Connection Util::Stream::getVod(std::string filename){
|
||||
std::string name = "MistPlayer " + filename;
|
||||
std::string player_bin = Util::getMyPath() + "MistPlayer";
|
||||
const char *argv[] = {player_bin.c_str(), filename.c_str(), NULL};
|
||||
char* const argv[] = {(char*)player_bin.c_str(), (char*)filename.c_str(), NULL};
|
||||
int fdin = -1, fdout = -1, fderr = fileno(stderr);
|
||||
Util::Procs::StartPiped(name, (char **)argv, &fdin, &fdout, &fderr);
|
||||
Util::Procs::StartPiped(name, argv, &fdin, &fdout, &fderr);
|
||||
// if StartPiped fails then fdin and fdout will be unmodified (-1)
|
||||
return Socket::Connection(fdin, fdout);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue