Move Gst.init to earlier time
This commit is contained in:
parent
549f557008
commit
2f67ad7b87
1 changed files with 3 additions and 3 deletions
|
@ -14,6 +14,9 @@ gi.require_version("Pango", "1.0")
|
||||||
|
|
||||||
from gi.repository import Gst # NOQA: E402
|
from gi.repository import Gst # NOQA: E402
|
||||||
|
|
||||||
|
# Initialize GStreamer
|
||||||
|
Gst.init(None)
|
||||||
|
|
||||||
from .application import Application # NOQA: E402
|
from .application import Application # NOQA: E402
|
||||||
from .thumbnailer import Thumbnailer # NOQA: E402
|
from .thumbnailer import Thumbnailer # NOQA: E402
|
||||||
|
|
||||||
|
@ -22,9 +25,6 @@ def main():
|
||||||
if len(sys.argv) >= 2:
|
if len(sys.argv) >= 2:
|
||||||
os.chdir(sys.argv[1])
|
os.chdir(sys.argv[1])
|
||||||
|
|
||||||
# Initialize GStreamer
|
|
||||||
Gst.init(None)
|
|
||||||
|
|
||||||
thumbnailer = Thumbnailer()
|
thumbnailer = Thumbnailer()
|
||||||
app = Application(thumbnailer=thumbnailer)
|
app = Application(thumbnailer=thumbnailer)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue