Re: piping netcat to mplayer
In your shell example, you're using port 5000 for nc but in your QProcess, you're using port 5001. Does the same shell command work with port 5001?
I've never done what you're trying before, but I wonder if you might have a timing issue where you start both QProcesses and the mplayer process may try to read from stdin and hit EOF because the nc process hasn't started completely and starting sending output to its stdout?
What if you started process1, then do a process1->waitForStarted(-1) before starting process2? Just a thought.
I write the best type of code possible, code that I want to write, not code that someone tells me to write!
Bookmarks