diff --git a/TriblerGUI/widgets/videoplayerpage.py b/TriblerGUI/widgets/videoplayerpage.py index a536d0e57dd..233525590a0 100644 --- a/TriblerGUI/widgets/videoplayerpage.py +++ b/TriblerGUI/widgets/videoplayerpage.py @@ -23,7 +23,9 @@ def __init__(self): self.is_full_screen = False def initialize_player(self): - os.environ['VLC_PLUGIN_PATH'] = vlc.plugin_path + if vlc.plugin_path: + os.environ['VLC_PLUGIN_PATH'] = vlc.plugin_path + self.instance = vlc.Instance() self.mediaplayer = self.instance.media_player_new() self.window().video_player_position_slider.should_change_video_position.connect(self.on_should_change_video_time)