develop.uap-core.de/git
/
uwplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use mpv binary path from settings
[uwplayer.git]
/
application
/
player.c
diff --git
a/application/player.c
b/application/player.c
index
9e47049
..
9e65410
100644
(file)
--- a/
application/player.c
+++ b/
application/player.c
@@
-39,6
+39,7
@@
#include <pthread.h>
#include "json.h"
#include <pthread.h>
#include "json.h"
+#include "settings.h"
extern char **environ;
extern char **environ;
@@
-121,7
+122,11
@@
static int start_player_process(Player *player, MainWindow *win) {
return 1;
}
return 1;
}
- char *player_bin = "/usr/local/bin/mpv"; // TODO: get bin from settings
+ char *player_bin = SettingsGetPlayerBin();
+ if(!player_bin) {
+ fprintf(stderr, "No mpv binary available\n");
+ return 1;
+ }
// -wid parameter value for embedding the player in the player_widget
Window wid = XtWindow(win->player_widget);
// -wid parameter value for embedding the player in the player_widget
Window wid = XtWindow(win->player_widget);