Commit 6cc83a00 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.
parent cc074043
......@@ -118,8 +118,12 @@ static int Open (vlc_object_t *obj)
case VLC_CODEC_VDPAU_VIDEO_420:
{
/* Force the option only if it was not previously set */
if (gl_name == NULL)
if (gl_name == NULL || gl_name[0] == 0
|| strcmp(gl_name, "any") == 0)
{
free(gl_name);
gl_name = strdup("glx");
}
break;
}
default:
......
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