You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't implement the failed callback in HL for loading videos because I wasn't sure how to handle things in kinc_video_init() (e.g. video.cpp.h for Windows) which doesn't have a return value at the moment and on Windows simply ignores the HRESULT values returned from the functions it calls. I don't know if you want to slightly change Kinc's API, but I think this is required in order to get error information out of this method. Preferably there would be some more stuff in place that in case of an error would print the actual reason to the console (e.g. the HRESULT value if != S_OK). I think this would have a very minor impact on performance but would be an tremendously helpful change.
To call the failed callback in Kha when loading a video fails, kinc_video_init() needs to be changed in order to return a value that can be used in Kha. It would be even better to print the actual cause of the failure in kinc_video_init() (if there is one). It's probably very easy to implement, but since I can only test the windows backend and don't want to change the Kinc API without an agreement on how it should look like, I'm opening this issue instead.
Also, at least in the Windows backend, there is memory allocated for video->impl.renderer which isn't freed if loading a video fails. The same might happen in other places as well, I don't know the GraphBuilder API.
The text was updated successfully, but these errors were encountered:
From Kode/Kha#1441:
To call the
failed
callback in Kha when loading a video fails,kinc_video_init()
needs to be changed in order to return a value that can be used in Kha. It would be even better to print the actual cause of the failure inkinc_video_init()
(if there is one). It's probably very easy to implement, but since I can only test the windows backend and don't want to change the Kinc API without an agreement on how it should look like, I'm opening this issue instead.Also, at least in the Windows backend, there is memory allocated for
video->impl.renderer
which isn't freed if loading a video fails. The same might happen in other places as well, I don't know the GraphBuilder API.The text was updated successfully, but these errors were encountered: