diff options
| author | Comment <tim@gray.(none)> | 2013-03-08 01:02:07 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-03-08 01:02:07 +0000 |
| commit | 8e1d11383ed4ef2e41b11fa88b475014c8c2ba5c (patch) | |
| tree | d365b70fa20417a72654a3756f8d1b22e2458219 /rotord/rotor.cpp | |
| parent | 4c2f390a7a47d396e9581e122633313f6a4295a9 (diff) | |
net stream files
Diffstat (limited to 'rotord/rotor.cpp')
| -rw-r--r-- | rotord/rotor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp index c894e04..02f4675 100644 --- a/rotord/rotor.cpp +++ b/rotord/rotor.cpp @@ -75,7 +75,9 @@ Command_response Render_context::session_command(const std::vector<std::string>& if (command.size()>2) { if (state==IDLE) { //check file exists - Poco::File f=Poco::File(command[3]); + //Poco::File f=Poco::File(command[3]); + std::auto_ptr<std::istream> pStr(URIStreamOpener::defaultOpener().open(command[3])); + if (f.exists()) { //pass to worker thread ??if engine is ready?? ??what if engine has finished but results aren't read?? audio_filename=command[3]; //for now, store session variables in memory |
