range restriction on Gst.Bus.timed_pop_filtered doesnt work with Gst.CLOCK_TIME_NONE
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 491
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
hello
ive tried porting the hello world example from gstreamer into lua. Gst.Bus.timed_pop_filtered is supposed to take a timeout value, or Gst.CLOCK_TIME_NONE if you dont want it to time out.
my lua version: luajit 2.1.0-beta3
local bit = require "bit"
local lgi = require "lgi"
local Gst = lgi.Gst
local pipeline = Gst.parse_launch("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm")
pipeline:set_state('PLAYING')
local bus = pipeline:get_bus()
local msg = bus:timed_pop_filtered(Gst.CLOCK_TIME_NONE, bit.bor(Gst.MessageType.EOS, Gst.MessageType.ERROR))
--bad argument #2 to 'timed_pop_filtered' (-1 is out of <0, 1.844674407371e+19>)
pipeline:set_state('NULL')
changing Gst.CLOCK_TIME_NONE to Gst.SECOND * 10000 works just fine, but this of course wont work for videos longer than 10000 seconds.
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 at the Gst.Bus.timed_pop_filtered binding and reproduce the reported LuaJIT call with Gst.CLOCK_TIME_NONE from the issue example. Trace how the timeout value is validated or converted; done means the sentinel is accepted without the range error while finite timeout values continue to work.
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
- Mostly clear
- Newbie friendliness
- 45/100