gst1: Replace get_pad() with get_static_pad()
This commit is contained in:
parent
e402c9816c
commit
1cf450940a
@ -139,7 +139,7 @@ class _Outputs(Gst.Bin):
|
||||
self._tee = Gst.ElementFactory.make('tee')
|
||||
self.add(self._tee)
|
||||
|
||||
ghost_pad = Gst.GhostPad.new('sink', self._tee.get_pad('sink'))
|
||||
ghost_pad = Gst.GhostPad.new('sink', self._tee.get_static_pad('sink'))
|
||||
self.add_pad(ghost_pad)
|
||||
|
||||
# Add an always connected fakesink which respects the clock so the tee
|
||||
@ -460,7 +460,8 @@ class Audio(pykka.ThreadingActor):
|
||||
except exceptions.AudioException:
|
||||
process.exit_process() # TODO: move this up the chain
|
||||
|
||||
self._handler.setup_event_handling(self._outputs.get_pad('sink'))
|
||||
self._handler.setup_event_handling(
|
||||
self._outputs.get_static_pad('sink'))
|
||||
|
||||
def _setup_audio_sink(self):
|
||||
audio_sink = Gst.Bin('audio-sink')
|
||||
@ -487,7 +488,7 @@ class Audio(pykka.ThreadingActor):
|
||||
else:
|
||||
queue.link(self._outputs)
|
||||
|
||||
ghost_pad = Gst.GhostPad.new('sink', queue.get_pad('sink'))
|
||||
ghost_pad = Gst.GhostPad.new('sink', queue.get_static_pad('sink'))
|
||||
audio_sink.add_pad(ghost_pad)
|
||||
|
||||
self._playbin.set_property('audio-sink', audio_sink)
|
||||
|
||||
@ -102,7 +102,7 @@ def _pad_added(element, pad, pipeline):
|
||||
|
||||
pipeline.add(sink)
|
||||
sink.sync_state_with_parent()
|
||||
pad.link(sink.get_pad('sink'))
|
||||
pad.link(sink.get_static_pad('sink'))
|
||||
|
||||
if pad.query_caps().is_subset(_RAW_AUDIO):
|
||||
struct = Gst.Structure('have-audio')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user