Mercurial > mplayer.hg
changeset 7516:657041b7236b
when working through a mixed play tree with audi-only files and video files
the OSD level is set to 0 when playing an audio-only file. The previous OSD
level never gets restored. My small patch handles this.
- patch by Reder Uwe <Uwe.Reder@3SOFT.de>
author | arpi |
---|---|
date | Fri, 27 Sep 2002 20:57:00 +0000 |
parents | 72dd0b05d562 |
children | 9d433771b6d0 |
files | mplayer.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Fri Sep 27 20:48:06 2002 +0000 +++ b/mplayer.c Fri Sep 27 20:57:00 2002 +0000 @@ -162,6 +162,7 @@ int use_gui=0; int osd_level=1; +int osd_level_saved=-1; int osd_visible=100; // seek: @@ -1288,7 +1289,16 @@ main: current_module="main"; -if(!sh_video) osd_level = 0; +// If there is no video OSD has to be disabled. +// In case of playing a playtree we have to restore the +// old OSD level after playing one or more audio-only files. +if(!sh_video && osd_level > 0) { // save OSD level only once + osd_level_saved = osd_level; + osd_level = 0; +} else if (osd_level_saved > -1) { // if there is a saved OSD level, restore it + osd_level = osd_level_saved; + osd_level_saved = -1; +} fflush(stdout);