From a9aec3a88e257794c319d3ee0b7155911bea1d8c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Jul 2021 21:03:52 +0200 Subject: Revert input-ipc-server->input-ipc-client because mpv version on ubuntu is too old --- include/VideoPlayer.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp index 97e4b61..bdf3344 100644 --- a/include/VideoPlayer.hpp +++ b/include/VideoPlayer.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include namespace QuickMedia { @@ -16,6 +17,7 @@ namespace QuickMedia { public: enum class Error { OK, + FAIL_TO_GENERATE_IPC_FILENAME, FAIL_TO_LAUNCH_PROCESS, FAIL_TO_CREATE_SOCKET, FAIL_TO_CONNECT_TIMEOUT, @@ -65,7 +67,9 @@ namespace QuickMedia { int connect_tries; int find_window_tries; int monitor_height; - int sockets[2]; + int ipc_socket = -1; + struct sockaddr_un ipc_addr; + char ipc_server_path[L_tmpnam]; EventCallbackFunc event_callback; VideoPlayerWindowCreateCallback window_create_callback; sf::WindowHandle window_handle; -- cgit v1.2.3