[MPlayer-cvslog] r35548 - in trunk/gui: interface.c ui/actions.c

ib subversion at mplayerhq.hu
Sat Dec 1 20:16:36 CET 2012


Author: ib
Date: Sat Dec  1 20:16:36 2012
New Revision: 35548

Log:
Fix wrong display of video width and height.

Reset this information if either there is no video or with
no media opened after playback.

Based on a patch by Hans-Dieter Kosch, hdkosch kabelbw de.

Modified:
   trunk/gui/interface.c
   trunk/gui/ui/actions.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sat Dec  1 20:08:53 2012	(r35547)
+++ trunk/gui/interface.c	Sat Dec  1 20:16:36 2012	(r35548)
@@ -672,8 +672,11 @@ int gui(int what, void *data)
 
         guiInfo.AudioChannels = data ? ((sh_audio_t *)data)->channels : 0;
 
-        if (data && !guiInfo.sh_video)
+        if (data && !guiInfo.sh_video) {
             guiInfo.VideoWindow = False;
+            guiInfo.VideoWidth  = 0;
+            guiInfo.VideoHeight = 0;
+        }
 
         gui(GUI_SET_MIXER, 0);
 

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Sat Dec  1 20:08:53 2012	(r35547)
+++ trunk/gui/ui/actions.c	Sat Dec  1 20:16:36 2012	(r35548)
@@ -296,6 +296,8 @@ void uiUnsetFile(void)
     guiInfo.Angle         = 0;
     guiInfo.RunningTime   = 0;
     guiInfo.AudioChannels = 0;
+    guiInfo.VideoWidth    = 0;
+    guiInfo.VideoHeight   = 0;
 }
 
 /**


More information about the MPlayer-cvslog mailing list