Skip to content

Commit

Permalink
Merge pull request #30 from beetbox/modern-glib
Browse files Browse the repository at this point in the history
Fix warnings in #24
  • Loading branch information
sampsyo committed Apr 25, 2016
2 parents d528d77 + 7939d70 commit 1f3eb05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ convert compressed audio files to WAV files.
Version History
---------------

2.1.3
Avoid some warnings in the GStreamer backend when using modern versions of
GLib. We now require at least GLib 2.32.

2.1.2
Fix a file descriptor leak when opening and closing many files using
GStreamer.
Expand Down
5 changes: 2 additions & 3 deletions audioread/gstdec.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst
from gi.repository import GLib, Gst

import sys
import threading
Expand Down Expand Up @@ -123,7 +123,6 @@ def __init__(self):
_shared_loop_thread = None
_loop_thread_lock = threading.RLock()

GObject.threads_init()
Gst.init(None)

def get_loop_thread():
Expand All @@ -143,7 +142,7 @@ class MainLoopThread(threading.Thread):
"""
def __init__(self):
super(MainLoopThread, self).__init__()
self.loop = GObject.MainLoop()
self.loop = GLib.MainLoop()
self.daemon = True

def run(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _read(fn):


setup(name='audioread',
version='2.1.2',
version='2.1.3',
description='multi-library, cross-platform audio decoding',
author='Adrian Sampson',
author_email='adrian@radbox.org',
Expand Down

0 comments on commit 1f3eb05

Please sign in to comment.