[MPlayer-cvslog] r37840 - trunk/gui/win32/interface.c

ib subversion at mplayerhq.hu
Mon Mar 7 10:30:16 CET 2016


Author: ib
Date: Mon Mar  7 10:30:15 2016
New Revision: 37840

Log:
Supplement to r37834.

codec-cfg: Optimize built-in codecs format.

Lookup strings via index in an array instead of
using direct pointers.

Modified:
   trunk/gui/win32/interface.c

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Sun Mar  6 19:10:55 2016	(r37839)
+++ trunk/gui/win32/interface.c	Mon Mar  7 10:30:15 2016	(r37840)
@@ -654,7 +654,7 @@ int gui(int what, void *data)
             guiInfo.sh_video = data;
             if (guiInfo.sh_video)
             {
-                codecname = guiInfo.sh_video->codec->name;
+                codecname = codec_idx2str(guiInfo.sh_video->codec->name_idx);
 
                 /* we have video, show the video window */
                 if(!IsWindowVisible(mygui->videowindow) || IsIconic(mygui->videowindow))


More information about the MPlayer-cvslog mailing list