After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770357 - list of elements exposed depends on available display at first init
list of elements exposed depends on available display at first init
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer-vaapi
git master
Other Linux
: Normal normal
: 1.9.90
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-24 22:34 UTC by Tim-Philipp Müller
Modified: 2016-10-31 14:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vaapi: DISPLAY envvar as dependency (1.04 KB, patch)
2016-09-01 11:53 UTC, Víctor Manuel Jáquez Leal
committed Details | Review

Description Tim-Philipp Müller 2016-08-24 22:34:57 UTC
Basically, if you compile/install gst-vaapi and then run this from an X terminal:

  DISPLAY= gst-inspect-1.0 vaapi

you get 0 elements.

If you then run

  gst-inspect-1.0 vaapi

you still get 0 elements, which isn't quite right.

Perhaps we should add DISPLAY and whatever env var is used for wayland as plugin dependency so the plugin gets reloaded whenever it changes?
Comment 1 Víctor Manuel Jáquez Leal 2016-09-01 11:53:51 UTC
Created attachment 334601 [details] [review]
vaapi: DISPLAY envvar as dependency

In a multiple video cards system, a X11 environment may have different VA
capabilities. This patch tracks the DISPLAY environment variable to
invalidates the GStreamer features cache. Also tracks WAYLAND_DISPLAY.
Comment 2 Julien Isorce 2016-09-01 20:07:10 UTC
Hi, the problem does not seem to happen in gst-uninstalled setup. 
I wanted it to check if it would be useful to add DRI_PRIME env var to that list too. This is how I am switching between integrated intel gpu and discrete nvidia gpu (gallium / nouveau).

Isn't any gst-inspect option to force reloading a plugin to help debugging ?
Comment 3 Tim-Philipp Müller 2016-09-01 20:26:04 UTC
Comment on attachment 334601 [details] [review]
vaapi: DISPLAY envvar as dependency

Thanks, was meaning to do the same :)
Comment 4 Víctor Manuel Jáquez Leal 2016-09-06 08:05:47 UTC
Attachment 334601 [details] pushed as 59821a2 - vaapi: DISPLAY envvar as dependency