[vlc-commits] DxVA work-around

Jean-Baptiste Kempf git at videolan.org
Sat Apr 11 00:19:01 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 10 20:56:00 2015 +0200| [b0dd1ab83caf870d18fdb8836a8ec8299075cb58] | committer: Jean-Baptiste Kempf

DxVA work-around

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

 modules/codec/avcodec/avcodec.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index 2251cda..b3eb3bb 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -129,7 +129,13 @@ vlc_module_begin ()
     add_obsolete_string( "ffmpeg-codec" ) /* removed since 2.1.0 */
     add_string( "avcodec-codec", NULL, CODEC_TEXT, CODEC_LONGTEXT, true )
     add_obsolete_bool( "ffmpeg-hw" ) /* removed since 2.1.0 */
-    add_module( "avcodec-hw", "hw decoder", "any", HW_TEXT, HW_LONGTEXT, false )
+    add_module( "avcodec-hw", "hw decoder",
+#ifdef _WIN32
+            "none"
+#else
+            "any"
+#endif
+            , HW_TEXT, HW_LONGTEXT, false )
 #if defined(FF_THREAD_FRAME)
     add_obsolete_integer( "ffmpeg-threads" ) /* removed since 2.1.0 */
     add_integer( "avcodec-threads", 0, THREADS_TEXT, THREADS_LONGTEXT, true );



More information about the vlc-commits mailing list