diff --git a/app/tools/media.py b/app/tools/media.py
index 22cc8249..1f2313c7 100644
--- a/app/tools/media.py
+++ b/app/tools/media.py
@@ -12,7 +12,7 @@ class Player:
def get_vlc_instance():
if Player._VLC_INSTANCE:
return Player._VLC_INSTANCE
- _VLC_INSTANCE = vlc.Instance("--no-xlib").media_player_new()
+ _VLC_INSTANCE = vlc.Instance("--quiet --no-xlib").media_player_new()
return _VLC_INSTANCE
def play(self, mrl=None):
diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py
index 63e39a3f..daa03c8f 100644
--- a/app/ui/main_app_window.py
+++ b/app/ui/main_app_window.py
@@ -1220,6 +1220,13 @@ class MainAppWindow:
except (NameError, AttributeError):
show_dialog(DialogType.ERROR, self._main_window, "No VLC is found. Check that it is installed!")
return
+ else:
+ if self._drawing_area_xid:
+ self._player.set_xwindow(self._drawing_area_xid)
+ self._services_main_box.set_visible(False)
+ self._bouquets_main_box.set_visible(False)
+ w, h = self._main_window.get_size()
+ self._player_box.set_size_request(w * 0.6, -1)
self._player_box.set_visible(True)
@@ -1243,8 +1250,6 @@ class MainAppWindow:
def on_drawing_area_realize(self, widget):
self._drawing_area_xid = widget.get_window().get_xid()
self._player.set_xwindow(self._drawing_area_xid)
- self._services_main_box.set_visible(False)
- self._bouquets_main_box.set_visible(False)
def on_player_drawing_area_draw(self, widget, cr):
""" Used for black background drawing in the player drawing area.
diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade
index 5100f417..251d65e0 100644
--- a/app/ui/main_window.glade
+++ b/app/ui/main_window.glade
@@ -1306,7 +1306,6 @@ Author: Dmitriy Yefremov
True
- True
+ False