Revert "Allow VLC_MIN_PORT to equal VLC_MAX_PORT"

This reverts commit 073cc2ce62d74882f0ec9102bcea8b96b3d0bec8.
This commit is contained in:
Et0h 2013-05-04 16:40:46 +01:00
parent 073cc2ce62
commit 3aa56864f8

View File

@ -18,7 +18,7 @@ class VlcPlayer(BasePlayer):
SLAVE_ARGS = ['--extraintf=luaintf','--lua-intf=syncplay'] SLAVE_ARGS = ['--extraintf=luaintf','--lua-intf=syncplay']
random.seed() random.seed()
vlcport = random.randrange(VLC_MIN_PORT, VLC_MAX_PORT) if (VLC_MIN_PORT < VLC_MAX_PORT) else VLC_MIN_PORT vlcport = random.randrange(VLC_MIN_PORT, VLC_MAX_PORT)
SLAVE_ARGS.append('--lua-config=syncplay={{port=\"{}\"}}'.format(str(vlcport))) SLAVE_ARGS.append('--lua-config=syncplay={{port=\"{}\"}}'.format(str(vlcport)))
def __init__(self, client, playerPath, filePath, args): def __init__(self, client, playerPath, filePath, args):