GStreamer error XDG_RUNTIME_DIR not set in the environment


I am having some trouble with GStreamer particularly when I run this command from my application:
gst_element_set_state( pipeline, GST_STATE_PLAYING );

This is the error I receive -
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0

I am running on a Linux distro called Yocto.

Any help is much appreciated. I have been stuck on this for half a day.


Sorry, this is community forum mostly intended to supported Emlid’s products such as Reach and Navio. If you use one of those, you’ll need to specify a little more information and specify which one at least.

I do not. Sorry about that. I googled and this is what came up for GStreamer communities.

Sure. Good luck in your research!

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.