]> git.sesse.net Git - ffmpeg/commit
hwcontext_vaapi: Try the first render node as the default DRM device
authorMark Thompson <sw@jkqxz.net>
Thu, 28 Jul 2016 22:28:30 +0000 (23:28 +0100)
committerMark Thompson <sw@jkqxz.net>
Sat, 13 Aug 2016 08:46:48 +0000 (09:46 +0100)
commit121f34d5f0c8d7d376829a467590fbbe4c228f4f
tree341ab3ec3a4c594add8525fe731b0057204ddb4d
parent6fc944e6136b050bf965f847bbfd69e1fe572f82
hwcontext_vaapi: Try the first render node as the default DRM device

If no string argument is supplied when av_hwdevice_ctx_create() is
called to create a VAAPI device, we currently only try the default
X11 display (that is, $DISPLAY) to find a device, and will therefore
fail in the absence of an X server to connect to.  Change the logic
to also look for a device via the first DRM render node (that is,
"/dev/dri/renderD128"), which is probably the right thing to use in
most simple configurations which only have one DRM device.
libavutil/hwcontext_vaapi.c