diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-06-14 14:25:37 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-06-14 14:25:37 +0200 |
commit | 23f47c6d5e0ccd9d467f23cb60ec18f41ceff4e0 (patch) | |
tree | 6656447840e8e7120b4583a406cff37a2db2a9ff /src/VideoPlayer.cpp | |
parent | 93b89cf4fce6b48ba8e26e9e907cbbb9e9632cf1 (diff) |
Enable gpu hardware decoding
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r-- | src/VideoPlayer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 9845442..8bb6825 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -13,7 +13,7 @@ #include <signal.h> const int RETRY_TIME_MS = 500; -const int MAX_RETRIES_CONNECT = 10; +const int MAX_RETRIES_CONNECT = 20; const int READ_TIMEOUT_MS = 200; namespace QuickMedia { @@ -80,6 +80,8 @@ namespace QuickMedia { "--no-input-terminal", "--no-osc", "--profile=gpu-hq", + "--vo=gpu", + "--hwdec=auto", "--no-resume-playback", /*"--vo=gpu", "--hwdec=auto",*/ wid_arg.c_str(), "--", path, nullptr }); |