Skip to content
Snippets Groups Projects
Commit 310c36df authored by Chad Hanna's avatar Chad Hanna
Browse files

pipeparts: work around for broken bindings override for...

pipeparts: work around for broken bindings override for elem.get_request_pad(). FIXME this is a dubious workaround that should be addressed more properly and eventually reverted when the libraries on the reference OS are updated and it is no longer a bug.
parent 979a2782
No related branches found
No related tags found
No related merge requests found
Pipeline #35880 failed
......@@ -365,7 +365,14 @@ def mkframecppchannelmux(pipeline, channel_src_map, units = None, seglists = Non
if channel_src_map is not None:
for channel, src in channel_src_map.items():
for srcpad in src.srcpads:
if srcpad.link(elem.get_request_pad(channel)) == Gst.PadLinkReturn.OK:
# FIXME FIXME FIXME. This should use the pad template from the element.
# FIXME once a newer version of some library is available, then we should be able to switch to this
# if srcpad.link(elem.get_request_pad(channel)) == Gst.PadLinkReturn.OK
# Instead. Right now it fails due to the
# underscore in channel names. When it fails
# it fails silently and returns None, which
# gives a cryptic error message
if srcpad.link(elem.request_pad(Gst.PadTemplate.new(channel, Gst.PadDirection.SINK, Gst.PadPresence.REQUEST, Gst.Caps("ANY")), channel)) == Gst.PadLinkReturn.OK:
break
if units is not None:
framecpp_channeldemux_set_units(elem, units)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment