develop.uap-core.de/git
/
uwplayer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a34cf98
)
add --player-operation-mode=pseudo-gui option to mpv
author
Olaf Wintermann
<olaf.wintermann@gmail.com>
Mon, 17 Jan 2022 16:27:23 +0000
(17:27 +0100)
committer
Olaf Wintermann
<olaf.wintermann@gmail.com>
Mon, 17 Jan 2022 16:27:23 +0000
(17:27 +0100)
application/player.c
patch
|
blob
|
history
diff --git
a/application/player.c
b/application/player.c
index
37c1b98
..
8c1909c
100644
(file)
--- a/
application/player.c
+++ b/
application/player.c
@@
-139,14
+139,16
@@
static int start_player_process(Player *player, MainWindow *win) {
// create player arg list
char *args[32];
// create player arg list
char *args[32];
- args[0] = player_bin;
- args[1] = "-wid";
- args[2] = wid_arg;
- args[3] = "--no-terminal";
- args[4] = log_arg;
- args[5] = ipc_arg;
- args[6] = win->file;
- args[7] = NULL;
+ int ac = 0;
+ args[ac++] = player_bin;
+ args[ac++] = "-wid";
+ args[ac++] = wid_arg;
+ args[ac++] = "--no-terminal";
+ args[ac++] = "--player-operation-mode=pseudo-gui";
+ args[ac++] = log_arg;
+ args[ac++] = ipc_arg;
+ args[ac++] = win->file;
+ args[ac++] = NULL;
posix_spawn_file_actions_t actions;
posix_spawn_file_actions_init(&actions);
posix_spawn_file_actions_t actions;
posix_spawn_file_actions_init(&actions);