-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
range restriction on Gst.Bus.timed_pop_filtered doesnt work with Gst.CLOCK_TIME_NONE #246
Comments
using |
I downloaded the debian package and extracted it to
So... apparently the contained value is correct. I guess this is some overflow somewhere. A For future-me: The argument in question has type |
Huh, I forgot an important step: Trying to reproduce the problem. Actually, I cannot reproduce. Your program above runs without any errors for me, for all the Lua versions that I have available.
LuaJIT is |
I set a breakpoint on
If I got the calling convention right, the second argument should be rsi, so is |
@samiam308 Could you run the following and tell me its output? For me, this produces
|
sorry it took me a while. for me, it doesnt even reach the print.
|
Weird. No idea where that difference could come from. Sorry. |
I'm not sure how this should behave, but for me (git lgi) v@v-home:~$ lua
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
> gobject = require("lgi").GObject
> value = gobject.Value()
> value:init(11 * 4) -- This is G_TYPE_UINT64
lgi.rec 0x558f17534ce8:GObject.Value
> value:set_uint64(require("lgi").Gst.CLOCK_TIME_NONE)
stdin:1: bad argument #2 to 'set_uint64' (-1 is out of <0, 9223372036854775807>)
stack traceback:
[C]: in method 'set_uint64'
stdin:1: in main chunk
[C]: in ?
> require("lgi").Gst.CLOCK_TIME_NONE
-1 It seems that Lua exports negative unsigned values without wrapping them from their max value? Or something like this. Another possibility: Lua can't store max value of unsigned 64-bit integer correctly (well, it can't). It would do so imprecisely in double (5.1/5.2) and just fail to in 64-bit signed integer in 5.3+. |
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
changing
Gst.CLOCK_TIME_NONE
toGst.SECOND * 10000
works just fine, but this of course wont work for videos longer than 10000 seconds.The text was updated successfully, but these errors were encountered: