gst1: Replace get_caps() with query_caps()
This commit is contained in:
parent
8e771e8970
commit
e402c9816c
@ -104,7 +104,7 @@ def _pad_added(element, pad, pipeline):
|
|||||||
sink.sync_state_with_parent()
|
sink.sync_state_with_parent()
|
||||||
pad.link(sink.get_pad('sink'))
|
pad.link(sink.get_pad('sink'))
|
||||||
|
|
||||||
if pad.get_caps().is_subset(_RAW_AUDIO):
|
if pad.query_caps().is_subset(_RAW_AUDIO):
|
||||||
struct = Gst.Structure('have-audio')
|
struct = Gst.Structure('have-audio')
|
||||||
element.get_bus().post(Gst.message_new_application(element, struct))
|
element.get_bus().post(Gst.message_new_application(element, struct))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user