Update gstreamer.py
This commit is contained in:
parent
efd302bf16
commit
94db5d4be3
@ -10,8 +10,6 @@ else:
|
|||||||
_gstreamerAvailable, args = Gst.init_check(None)
|
_gstreamerAvailable, args = Gst.init_check(None)
|
||||||
|
|
||||||
class sound:
|
class sound:
|
||||||
"""Plays Icons and Tones."""
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._initialized = False
|
self._initialized = False
|
||||||
self._source = None
|
self._source = None
|
||||||
@ -55,7 +53,6 @@ class sound:
|
|||||||
GLib.timeout_add(duration, self._onTimeout, self._pipeline)
|
GLib.timeout_add(duration, self._onTimeout, self._pipeline)
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
"""(Re)Initializes the Player."""
|
|
||||||
if self._initialized:
|
if self._initialized:
|
||||||
return
|
return
|
||||||
if not _gstreamerAvailable:
|
if not _gstreamerAvailable:
|
||||||
|
Loading…
Reference in New Issue
Block a user