[vlc-commits] dwrite: Reduce errors verbosity

Hugo Beauzée-Luyssen git at videolan.org
Thu Dec 29 16:04:32 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 29 16:01:50 2016 +0100| [f5afa36da43f765cc9db2981d052b227f54d9067] | committer: Hugo Beauzée-Luyssen

dwrite: Reduce errors verbosity

Some failures can be expected depending on the OS version and would spam
the user

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

 modules/text_renderer/freetype/fonts/dwrite.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/text_renderer/freetype/fonts/dwrite.cpp b/modules/text_renderer/freetype/fonts/dwrite.cpp
index c602c73..63d2115 100644
--- a/modules/text_renderer/freetype/fonts/dwrite.cpp
+++ b/modules/text_renderer/freetype/fonts/dwrite.cpp
@@ -116,19 +116,15 @@ extern "C" int InitDWrite( filter_t *p_filter )
 #else
         p_dw_dll = LoadLibrary( TEXT( "Dwrite.dll" ) );
         if( p_dw_dll == NULL )
-        {
-            msg_Err( p_filter, "InitDWrite(): LoadLibrary() failed" );
             return VLC_EGENERIC;
-        }
 
         p_dw_sys = new dw_sys_t( p_dw_dll );
 #endif
     }
     catch( const exception &e )
     {
-        msg_Err( p_filter, "InitDWrite(): %s", e.what() );
-
 #if !VLC_WINSTORE_APP
+        msg_Err( p_filter, "InitDWrite(): %s", e.what() );
         FreeLibrary( p_dw_dll );
 #endif
 
@@ -136,6 +132,7 @@ extern "C" int InitDWrite( filter_t *p_filter )
     }
 
     p_sys->p_dw_sys = p_dw_sys;
+    msg_Dbg( p_filter, "Using DWrite backend" );
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list