[Bug 777409] pluginbase: Query for OpenGL app_context
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jan 26 17:22:47 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=777409
--- Comment #26 from Matt Fischer <mattfischer84 at gmail.com> ---
It works for my use cases. However there are a couple of things that seem
strange about this version:
* gst_vaapi_plugin_base_find_gl_context() now lives in gstvaapipluginutil.c.
Should it be renamed?
* Also gst_vaapi_plugin_base_find_gl_context() calls
gst_vaapi_plugin_base_create_gl_context(), it seems odd for a utility function
to assume that it's a PLUGIN_BASE.
Maybe it would be better to just move the contents of
gst_vaapi_ensure_display() into gst_vaapi_plugin_base_ensure_display()? That's
the only place that calls it anyway.
Also, the IS_VIDEO_SINK || IS_VIDEO_ENCODER check causes a change in the
previous behavior. Before, it would always attempt to at least query for a
local context, now it will not perform that query if it's a sink or encoder.
If we really need to avoid doing the context construction for sinks and
encoders, would it be better to put that check around the
gst_vaapi_plugin_base_create_gl_context() call instead, so that the previous
behavior is retained?
I'm not sure I quite understand why we need to exclude sinks and encoders in
the first place, though. Now that you have the check to reject default-created
GL display, shouldn't it be safe to use this code for all VAAPI plugins?
--
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