gst1: Update GhostPad() with GhostPad.new()
This commit is contained in:
parent
5d6981d70e
commit
8e771e8970
@ -139,7 +139,7 @@ class _Outputs(Gst.Bin):
|
|||||||
self._tee = Gst.ElementFactory.make('tee')
|
self._tee = Gst.ElementFactory.make('tee')
|
||||||
self.add(self._tee)
|
self.add(self._tee)
|
||||||
|
|
||||||
ghost_pad = Gst.GhostPad('sink', self._tee.get_pad('sink'))
|
ghost_pad = Gst.GhostPad.new('sink', self._tee.get_pad('sink'))
|
||||||
self.add_pad(ghost_pad)
|
self.add_pad(ghost_pad)
|
||||||
|
|
||||||
# Add an always connected fakesink which respects the clock so the tee
|
# Add an always connected fakesink which respects the clock so the tee
|
||||||
@ -487,7 +487,7 @@ class Audio(pykka.ThreadingActor):
|
|||||||
else:
|
else:
|
||||||
queue.link(self._outputs)
|
queue.link(self._outputs)
|
||||||
|
|
||||||
ghost_pad = Gst.GhostPad('sink', queue.get_pad('sink'))
|
ghost_pad = Gst.GhostPad.new('sink', queue.get_pad('sink'))
|
||||||
audio_sink.add_pad(ghost_pad)
|
audio_sink.add_pad(ghost_pad)
|
||||||
|
|
||||||
self._playbin.set_property('audio-sink', audio_sink)
|
self._playbin.set_property('audio-sink', audio_sink)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user