summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 12:59:02 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-28 22:00:08 -0500
commit3010ae8c85fe8cb656c9e96a95d0efee0fb2126a (patch)
treeaaef61855b1b4244da57f6a23b0a56ed92ff056f /play/index.php
parent75b2af2464c168525d207e2c4b2d20ea4e1719d0 (diff)
downloadampache-3010ae8c85fe8cb656c9e96a95d0efee0fb2126a.tar.gz
ampache-3010ae8c85fe8cb656c9e96a95d0efee0fb2126a.tar.bz2
ampache-3010ae8c85fe8cb656c9e96a95d0efee0fb2126a.zip
Log stderr when we transcode
Now you shouldn't need to manually run the command to see what went wrong.
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index a6638e0c..238e963f 100644
--- a/play/index.php
+++ b/play/index.php
@@ -462,7 +462,11 @@ else {
if ($demo_id) { $democratic->delete_from_oid($oid,'song'); }
if ($transcode) {
- pclose($fp);
+ $stderr = fread($transcoder['stderr'], 8192);
+ fclose($transcoder['stderr']);
+ fclose($fp);
+ proc_close($transcoder['process']);
+ debug_event('transcode_cmd', $stderr, 5);
}
else {
fclose($fp);