[Bug 766206] plugins: negotiate GstGLContext during the GstContext sharing
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jul 13 14:59:47 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766206
--- Comment #6 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
Thanks, Matthew, for your kind review!! :)
(In reply to Matthew Waters (ystreet00) from comment #5)
> Review of attachment 331372 [details] [review]:
>
> Looks mostly ok from the libgstgl side.
>
> ::: gst/vaapi/gstvaapivideocontext.c
> @@ +27,3 @@
> #include "gstvaapivideocontext.h"
> +#if USE_GST_GL_HELPERS
> +# include <gst/gl/gstglcontext.h>
>
> Any of the object specific headers aren't guarenteed to be straight
> includable. Use #include <gst/gl/gl.h>
>
> @@ +266,3 @@
> + if (gl_context && gl_context_ptr) {
> + *gl_context_ptr = gl_context;
> + return TRUE;
>
> This may not do what the function name implies.
>
> One should probably assert that gl_context_ptr is non-NULL on function entry
> (otherwise there's no point calling the function) and always return TRUE
> when a gl_context is found.
>
> ::: gst/vaapi/gstvaapivideocontext.h
> @@ +59,3 @@
> +G_GNUC_INTERNAL
> +gboolean
> +gst_gl_find_local_context (GstElement * element, GstObject **
> gl_context_ptr);
>
> Creating a function in the gst_gl namespace isn't a good idea at all.
D'oh!
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list