GNOME Bugzilla – Bug 735566
gl: some cleanup and fixes to qglwtextureshare
Last modified: 2014-08-28 07:06:59 UTC
Created attachment 284657 [details] [review] some clean and fix to qglwtextureshare this patch does some clean and fix to qglwtextureshare: 1.function in glcontextid.h already replaced by gst_gl_context_new_wrapped 2.fix call gst function before calling gst_init 3.flush gstreamer's opengl thread before using the result texture, without this, on ATI card, the result texture may not be rendered completely when used in other context, leads weird flicker or random garbage. hopes this hint can help others who uses gstreamer context share within app.
commit 8d6f745b78e8190cebd9061192975ad88a08efd5 Author: Wang Xin-yu (王昕宇) <comicfans44@gmail.com> Date: Tue Aug 26 16:21:42 2014 +0800 gl: qglwtextureshare demo fixes and cleanup 1. glcontextid function is replaced by gstreamer gst_gl_context_new_wrapped . 2. call gst_init before gst_gl_display_new , seems gst_gl_display_new depends on gst_allocator_register , which only worked after gst_init called 3. flush gstreamer OpenGL context before using shared texture, fix flicker problem. https://bugzilla.gnome.org/show_bug.cgi?id=735566