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)