From 2f67ad7b87231b8f525975e12ecae25bb7edb4b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= <mordae@anilinux.org> Date: Wed, 12 Mar 2025 23:16:57 +0100 Subject: [PATCH] Move Gst.init to earlier time --- lazy_player/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lazy_player/__init__.py b/lazy_player/__init__.py index cca5f73..fa1126d 100644 --- a/lazy_player/__init__.py +++ b/lazy_player/__init__.py @@ -14,6 +14,9 @@ gi.require_version("Pango", "1.0") from gi.repository import Gst # NOQA: E402 +# Initialize GStreamer +Gst.init(None) + from .application import Application # NOQA: E402 from .thumbnailer import Thumbnailer # NOQA: E402 @@ -22,9 +25,6 @@ def main(): if len(sys.argv) >= 2: os.chdir(sys.argv[1]) - # Initialize GStreamer - Gst.init(None) - thumbnailer = Thumbnailer() app = Application(thumbnailer=thumbnailer)