summaryrefslogtreecommitdiffstats
path: root/lib/class/stream.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r--lib/class/stream.class.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index 35d4eb64..c21f5823 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -135,8 +135,18 @@ class Stream {
debug_event('downsample', "Downsample command: $command", 3);
+ $process = proc_open(
+ $command,
+ array(
+ 1 => array('pipe', 'w'),
+ 2 => array('pipe', 'w')
+ ),
+ $pipes
+ );
return array(
- 'handle' => popen($command, 'rb'),
+ 'process' => $process,
+ 'handle' => $pipes[1],
+ 'stderr' => $pipes[2],
'format' => $transcode_settings['format']
);