[vlc-commits] avcodec: get avcodec-hw value explicitly

Rémi Denis-Courmont git at videolan.org
Wed Oct 17 12:02:19 CEST 2018


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 30 21:19:45 2018 +0200| [c9e19828f54108fbdb4ca6c4ba57df8ca6d8ed87] | committer: Steve Lhomme

avcodec: get avcodec-hw value explicitly

(cherry picked from commit 2f952cf739b636fa7fb01c74baa86fb2c9207d79)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=c9e19828f54108fbdb4ca6c4ba57df8ca6d8ed87
---

 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