diff options
author | micha <micha@ssnc10.localdomain> | 2010-10-13 15:43:08 +0200 |
---|---|---|
committer | micha <micha@ssnc10.localdomain> | 2010-10-13 15:43:08 +0200 |
commit | a6784d57c203b61b09b4a6d5d8895a666d89327f (patch) | |
tree | fc620ea63f3ad7c2da5e4eb180d580f702b553ab | |
parent | 4ba5338d3279cd75106aa96810b91e35e692a49f (diff) | |
download | erlang-a6784d57c203b61b09b4a6d5d8895a666d89327f.tar.gz erlang-a6784d57c203b61b09b4a6d5d8895a666d89327f.tar.xz erlang-a6784d57c203b61b09b4a6d5d8895a666d89327f.zip |
fixed media player
-rw-r--r-- | server/media.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/media.erl b/server/media.erl index 3678ff3..3897a6a 100644 --- a/server/media.erl +++ b/server/media.erl @@ -55,9 +55,8 @@ all() -> play(Artist, Title, Callback) -> [Head|_] = ask(Artist, Title), - {_, artist, title, _, _, fp} = Head, - Cmd = "mplayer -quiet " ++ fp, - Port = erlang:open_port({spawn, Cmd}, [exit_status]). - + {_, _, _, _, _, Fp} = Head, +% Port = erlang:open_port({spawn, Cmd}, [exit_status]). + Port = erlang:open_port({spawn_executable, "/usr/bin/mplayer"}, [{args, [Fp]}]). % We want to execute commands locally |