Commit 2f952cf7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: get avcodec-hw value explicitly

parent 4c365832
......@@ -121,8 +121,11 @@ vlc_va_t *vlc_va_New(vlc_object_t *obj, AVCodecContext *avctx,
if (unlikely(va == NULL))
return NULL;
va->module = vlc_module_load(va, "hw decoder", "$avcodec-hw", true,
char *modlist = var_InheritString(obj, "avcodec-hw");
va->module = vlc_module_load(va, "hw decoder", modlist, true,
vlc_va_Start, va, avctx, pix_fmt, fmt, p_sys);
if (va->module == NULL)
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