From 3e5aeefaab02bb37402c0e65a86b6bdb570051a5 Mon Sep 17 00:00:00 2001 From: Etoh Date: Sat, 9 Dec 2017 10:46:55 +0000 Subject: [PATCH] Fix jumping issue on VLC 4 (#161) --- resources/lua/intf/syncplay.lua | 6 +++--- syncplay/__init__.py | 2 +- syncplay/constants.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lua/intf/syncplay.lua b/resources/lua/intf/syncplay.lua index 9b2c459..9193776 100644 --- a/resources/lua/intf/syncplay.lua +++ b/resources/lua/intf/syncplay.lua @@ -5,7 +5,7 @@ Principal author: Etoh Other contributors: DerGenaue, jb, Pilotat Project: http://syncplay.pl/ - Version: 0.3.3 + Version: 0.3.4 Note: * This interface module is intended to be used in conjunction with Syncplay. @@ -243,7 +243,7 @@ function get_var( vartoget, fallbackvar ) errormsg = noinput end - if vlcmajorversion == 3 and vartoget == "time" then + if vlcmajorversion > 2 and vartoget == "time" then response = response / 1000000 end @@ -257,7 +257,7 @@ function set_var(vartoset, varvalue) local errormsg local input = vlc.object.input() - if vlcmajorversion == 3 and vartoset == "time" then + if vlcmajorversion > 2 and vartoset == "time" then varvalue = varvalue * 1000000 end diff --git a/syncplay/__init__.py b/syncplay/__init__.py index 9dc2334..55e5028 100644 --- a/syncplay/__init__.py +++ b/syncplay/__init__.py @@ -1,4 +1,4 @@ version = '1.5.0' milestone = 'Yoitsu' -release_number = '47' +release_number = '48' projectURL = 'http://syncplay.pl/' diff --git a/syncplay/constants.py b/syncplay/constants.py index 0a2bdda..2da9113 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -84,7 +84,7 @@ COMMANDS_AUTH = ['a','auth'] COMMANDS_TOGGLE = ['t','toggle'] MPC_MIN_VER = "1.6.4" VLC_MIN_VERSION = "2.2.1" -VLC_INTERFACE_MIN_VERSION = "0.3.3" +VLC_INTERFACE_MIN_VERSION = "0.3.4" VLC_LATENCY_ERROR_THRESHOLD = 2.0 MPV_UNRESPONSIVE_THRESHOLD = 60.0 CONTROLLED_ROOMS_MIN_VERSION = "1.3.0"