From 23f47c6d5e0ccd9d467f23cb60ec18f41ceff4e0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 14 Jun 2020 14:25:37 +0200 Subject: Enable gpu hardware decoding --- src/VideoPlayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/VideoPlayer.cpp') 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 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 }); -- cgit v1.2.3