Commit 9ed1d800 authored by Thomas Guillem's avatar Thomas Guillem

opengl: fix vdpau GLX usage

Indeed, this variable can be "any" if it was previously reset from preference
settings.

(cherry picked from commit 6cc83a00)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 9ed4d71e
......@@ -119,7 +119,7 @@ static int Open (vlc_object_t *obj)
{
/* Force the option only if it was not previously set */
char *str = var_InheritString(surface, MODULE_VARNAME);
if (str == NULL)
if (str == NULL || str[0] == 0 || strcmp(str, "any") == 0)
gl_name = "glx";
free(str);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment