GNOME Bugzilla – Bug 751546
gl: gst_gl_context_destroy is unused
Last modified: 2015-07-08 03:38:49 UTC
Better remove unused public API while we still can.
Created attachment 306177 [details] [review] gl: remove unused code
Comment on attachment 306177 [details] [review] gl: remove unused code Why do you think we should remove that? The vfunc is implemented by all backends it seems, and probably gst_gl_context_create_thread() should just call that function in the end instead of just calling the vfunc? However I'm not sure how useful it is to have this vfunc public, not sure what exactly will happen if someone calls it on a still running context. Probably crashes
Just saw that it's never used, and the vfunc is called internally so I don't see why you would need it to be public. But it's cosmetic, feel free to close WONTFIX ;-)
Bad things will mostly likely happen if destroy_context is called while other's are using the context. Currently refcounting the context takes care of destroying the context when necessary. When the extra GL thread is removed from GstGLWindow as a result of bug #704809, there will be use for an explicit destroy_context() as the mirror to create_context() in the brave new world.