mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 04:55:10 +01:00
replaygain: ignoring deprecation warning for threads_init in newer gi versions. Fixes #697
This commit is contained in:
parent
bbb1f7a295
commit
bfac8cf84f
1 changed files with 3 additions and 1 deletions
|
|
@ -273,7 +273,9 @@ class GStreamerBackend(object):
|
|||
from gi.repository import GObject, Gst, GLib
|
||||
# Calling GObject.threads_init() is not needed for
|
||||
# PyGObject 3.10.2+
|
||||
GObject.threads_init()
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore")
|
||||
GObject.threads_init()
|
||||
Gst.init([sys.argv[0]])
|
||||
except:
|
||||
raise FatalReplayGainError("GStreamer failed to initialize")
|
||||
|
|
|
|||
Loading…
Reference in a new issue