[MPlayer-cvslog] r33672 - trunk/libvo/vo_directx.c

reimar subversion at mplayerhq.hu
Sun Jun 19 20:31:45 CEST 2011


Author: reimar
Date: Sun Jun 19 20:31:45 2011
New Revision: 33672

Log:
Simplify code for printing display adapter list.

Modified:
   trunk/libvo/vo_directx.c

Modified: trunk/libvo/vo_directx.c
==============================================================================
--- trunk/libvo/vo_directx.c	Sun Jun 19 19:33:16 2011	(r33671)
+++ trunk/libvo/vo_directx.c	Sun Jun 19 20:31:45 2011	(r33672)
@@ -377,16 +377,9 @@ static void uninit(void)
 
 static BOOL WINAPI EnumCallbackEx(GUID FAR *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR  hm)
 {
-    mp_msg(MSGT_VO, MSGL_INFO ,"<vo_directx> adapter %d: ", adapter_count);
-
     if (!lpGUID)
-    {
-        mp_msg(MSGT_VO, MSGL_INFO ,"%s", "Primary Display Adapter");
-    }
-    else
-    {
-        mp_msg(MSGT_VO, MSGL_INFO ,"%s", lpDriverDescription);
-    }
+        lpDriverDescription = "Primary Display Adapter";
+    mp_msg(MSGT_VO, MSGL_INFO ,"<vo_directx> adapter %d: %s", adapter_count, lpDriverDescription);
 
     if(adapter_count == vo_adapter_num){
         MONITORINFO mi;


More information about the MPlayer-cvslog mailing list