changeset 35454:adee37856514

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.
author ib
date Sat, 01 Dec 2012 19:16:36 +0000
parents c8f3bba6250a
children c9c79a011f6f
files gui/interface.c gui/ui/actions.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Sat Dec 01 19:08:53 2012 +0000
+++ b/gui/interface.c	Sat Dec 01 19:16:36 2012 +0000
@@ -672,8 +672,11 @@
 
         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);
 
--- a/gui/ui/actions.c	Sat Dec 01 19:08:53 2012 +0000
+++ b/gui/ui/actions.c	Sat Dec 01 19:16:36 2012 +0000
@@ -296,6 +296,8 @@
     guiInfo.Angle         = 0;
     guiInfo.RunningTime   = 0;
     guiInfo.AudioChannels = 0;
+    guiInfo.VideoWidth    = 0;
+    guiInfo.VideoHeight   = 0;
 }
 
 /**