Commit graph

16 commits

Author SHA1 Message Date
Markus Pettersson
50485e7c3a Return result of Command::execute directly from main
Since `Result` implements
`Termination` (https://doc.rust-lang.org/std/process/trait.Termination.html),
the result of `Command::execute` can be returned from `main` directly.
If an `FF2MpvError` error would be propagated to `main`, it will be
printed using `eprintln` just as before, and the program will terminate
with an appropriate exit code:
https://doc.rust-lang.org/std/process/struct.ExitCode.html#associatedconstant.FAILURE

The only caveat is that `FF2MpvError` has to implement `Debug`, but
instead of deriving it I cheated a bit and re-used the existing
`Display` implementation to preserve the format of the error messages.
2023-10-29 16:05:45 +01:00
4fcc2ac31f Spawn player with CREATE_BREAKAWAY_FROM_JOB on Windows 2023-10-21 21:39:12 +03:00
4aa4ca5d8c
Add Cargo.lock. Fixes #4 2023-09-04 23:10:55 +03:00
d4a633468e
Merge pull request #2 from Gobbel2000/improvements
Send reply to browser and suppress output from mpv
2023-04-10 02:59:50 +03:00
Gabriel Vogel
3c9db73c54 Send correct reply and suppress mpv output
This prevents errors in the browser log
2023-04-09 16:50:42 +02:00
Gabriel Vogel
5d7c23124c Reenable send_reply
This reverts commit 36fb89b956
                and 76e8c0d8f2.
2023-04-09 16:33:29 +02:00
36fb89b956
Remove unused Write trait import 2023-03-14 22:19:07 +03:00
76e8c0d8f2
Remove unneccesary send_reply 2023-03-14 22:10:51 +03:00
43c3cae634
Version 1.1.0 2023-03-14 21:27:50 +03:00
d3b7e13a5a
Update README 2023-03-14 21:25:10 +03:00
78555c3d93
Added example configuration file 2023-03-14 21:22:54 +03:00
ab586ba197
Refactor, added config file for custom players and cli interface 2023-03-14 20:48:43 +03:00
7de78329fb
Make clippy happy 2023-03-14 14:25:43 +03:00
ab554ead23
Newlines at the end 2023-02-13 21:34:10 +03:00
72937872cd
Version 1.0.0 2023-02-13 21:20:26 +03:00
d1cacecb48
Initial commit 2023-02-13 21:14:26 +03:00