Add gst MESSAGE_* constansts to BaseOutput

This commit is contained in:
Thomas Adamcik 2011-05-16 21:50:02 +02:00
parent f7f26403af
commit 64a6202ea1

View File

@ -9,6 +9,10 @@ logger = logging.getLogger('mopidy.outputs')
class BaseOutput(object):
"""Base class for providing support for multiple pluggable outputs."""
MESSAGE_EOS = gst.MESSAGE_EOS
MESSAGE_ERROR = gst.MESSAGE_ERROR
MESSAGE_WARNING = gst.MESSAGE_WARNING
def __init__(self, gstreamer):
self.gstreamer = gstreamer
self.bin = self.build_bin()