[vlc-commits] avcodec: get avcodec-hw value explicitly
Rémi Denis-Courmont
git at videolan.org
Tue Jan 30 20:45:16 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 30 21:19:45 2018 +0200| [2f952cf739b636fa7fb01c74baa86fb2c9207d79] | committer: Rémi Denis-Courmont
avcodec: get avcodec-hw value explicitly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f952cf739b636fa7fb01c74baa86fb2c9207d79
---
modules/codec/avcodec/va.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/va.c b/modules/codec/avcodec/va.c
index 62de0830f6..b8b9e267a1 100644
--- a/modules/codec/avcodec/va.c
+++ b/modules/codec/avcodec/va.c
@@ -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);
+ free(modlist);
if (va->module == NULL)
{
vlc_object_release(va);
More information about the vlc-commits
mailing list