From fefb6aa5a2996329e3a9e3ef95d7e5d1bb29fb5c Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Mon, 8 Feb 2016 00:24:38 +0100 Subject: [PATCH] gst1: Don't check Gst.is_initialized before calling Gst.init As of gst-python 1.5.2, Gst.is_initialized throws a NotInitialized exception if run before Gst.init. Gst.init should be a noop if run again after the first call, so this should be safe. This fixes #1432. --- mopidy/internal/gi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/internal/gi.py b/mopidy/internal/gi.py index fb9af0c9..229277c3 100644 --- a/mopidy/internal/gi.py +++ b/mopidy/internal/gi.py @@ -22,7 +22,7 @@ except ImportError: """)) raise else: - Gst.is_initialized() or Gst.init([]) + Gst.init([]) REQUIRED_GST_VERSION = (1, 2, 3)