GNOME Bugzilla – Bug 709112
upstream query for context
Last modified: 2013-11-18 13:04:55 UTC
As Slomo said in bug #703235: > Also the query should be sent downstream, then upstream, then the > need-context message. > > Just took a short look at these patches but this part seems to be missing.
Hi, yes, he also mentioned the step (1) IIRC that is, caching the VA display ourselves and checking against it first. Though, we already do that IMHO, before we call gst_vaapi_video_context_prepare().
Created attachment 256194 [details] [review] context: query upstream for context
When I play a video with playbin both vaapidecode and vaapisink create their own display. But if I play a video crafting manually the pipeline, the vaapidecode's display is shared correctly. Slomo?
Applied, thanks. (In reply to comment #3) > When I play a video with playbin both vaapidecode and vaapisink create their > own display. But if I play a video crafting manually the pipeline, the > vaapidecode's display is shared correctly. Slomo? This also matches my observations from my initial testing.
commit b56144e9241ae826b5eae7c3a3e7454f75259e59 Author: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Date: Tue Oct 1 12:09:44 2013 +0200 plugins: query upstream element for a GstContext. Fix gst_vaapi_video_context_prepare() to also query upstream elements for a valid GstContext. Improve comments regarding the steps used to lookup or build that context, thus conforming to the GstContext API recommendations. https://bugzilla.gnome.org/show_bug.cgi?id=709112 Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>