# HG changeset patch # User ib # Date 1354389396 0 # Node ID adee378565144875b78c843f59bb390c6f41429b # Parent c8f3bba6250a77245ec2b7180c56c3828d98f4c3 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. diff -r c8f3bba6250a -r adee37856514 gui/interface.c --- 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); diff -r c8f3bba6250a -r adee37856514 gui/ui/actions.c --- 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; } /**