How to connect signal on derived class of GstBin?
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 491
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
For example,
local Gst=lgi.Gst
local bin=Gst.parse_bin_from_description('rtspsrc location="rtsp://...." name=mysrc ! rtph264depay ', true)
local rtspsrc=bin:get_by_name('mysrc')
function rtspsrc:on_on_sdp(sdp,ud)
print('got sdp:',sdp)
end
when connecting to 'on-sdp' signal on a GstRtspSrc object, the above codes would fail with error message:
Gst.Bin: no `on_on_sdp'
It seems signals are loaded from GI typelib rather than through gobject runtime query. Maybe the way I'm using signals for such case is wrong?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Lua reproduction using lgi.Gst, Gst.parse_bin_from_description, and get_by_name, then trace how the on-sdp signal is resolved for the GstRtspSrc object. Reproduce the Gst.Bin: no on_on_sdp error and determine whether the signal lookup differs between GI typelib data and runtime GObject data; done means the issue is explained or the derived-class signal connection works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100