gst1: Gst.Bin() no longer takes a name

This commit is contained in:
Stein Magnus Jodal 2015-10-26 21:39:09 +01:00
parent ef40854b86
commit ee99bedf39

View File

@ -136,7 +136,8 @@ class _Appsrc(object):
class _Outputs(Gst.Bin):
def __init__(self):
Gst.Bin.__init__(self, 'outputs')
Gst.Bin.__init__(self)
# TODO gst1: Set 'outputs' as the Bin name for easier debugging
self._tee = Gst.ElementFactory.make('tee')
self.add(self._tee)
@ -468,7 +469,7 @@ class Audio(pykka.ThreadingActor):
self._outputs.get_static_pad('sink'))
def _setup_audio_sink(self):
audio_sink = Gst.Bin('audio-sink')
audio_sink = Gst.ElementFactory.make('bin', 'audio-sink')
# Queue element to buy us time between the about to finish event and
# the actual switch, i.e. about to switch can block for longer thanks