[vlc-commits] Win32: DxVA work-around to solve perf issue
Jean-Baptiste Kempf
git at videolan.org
Fri Apr 10 21:57:47 CEST 2015
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 10 20:56:00 2015 +0200| [a060374a5f3b4184c94c1b591f693faf4e6912b7] | committer: Jean-Baptiste Kempf
Win32: DxVA work-around to solve perf issue
This is a HACK to work-around #14054
This is NOT a fix, but well.
It will default the Windows to "no" acceleration, until it is fixed.
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=a060374a5f3b4184c94c1b591f693faf4e6912b7
---
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 07902af..bea5374 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -136,7 +136,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