-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Gst.init() increasing INIT_COUNT too early #140
Comments
I don't think |
@MaZderMind true, at least for now, but it's not the total cause of this issue which is why I didn't fix it for 1.0. It's not clear whether and in what circumstances an error thrown there is usefully recoverable for a start. |
I'm also running into this issue. I'd like to use the result of Gst.isInitialized() to enable/disable gstreamer functionality in my application if start up failed. Whats the rationale for keeping this incremented in the event of a failure? |
@dannysmyda the rationale is covered above. Do not use I'm assuming your comment doesn't mean you're also using deinit()? If so, don't. |
When I run Gst.init() i sometimes get an Invalid memory access Error thrown by
GST_API.gst_init_check(argv.argcRef, argv.argvRef, error)
But since INIT_COUNT is increased before that call Gst seems to be initialized when it's not.
Perhaps INIT_COUNT should be incremented last in Gst.init(). Something like;
The text was updated successfully, but these errors were encountered: