1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

gui status maintaining - now pause from console works, and gui display is in sync with osd

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1794 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-08-30 23:11:06 +00:00
parent e980241839
commit e8d21b272f

View File

@ -1497,6 +1497,9 @@ if(auto_quality>0){
if(osd_function==OSD_PAUSE){ if(osd_function==OSD_PAUSE){
mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\n------ PAUSED -------\r");fflush(stdout); mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\n------ PAUSED -------\r");fflush(stdout);
#ifdef HAVE_NEW_GUI
if(use_gui) mplShMem->Playing=2;
#endif
if (audio_out && sh_audio) if (audio_out && sh_audio)
audio_out->pause(); // pause audio, keep data if possible audio_out->pause(); // pause audio, keep data if possible
while( while(
@ -1518,6 +1521,9 @@ if(auto_quality>0){
osd_function=OSD_PLAY; osd_function=OSD_PLAY;
if (audio_out && sh_audio) if (audio_out && sh_audio)
audio_out->resume(); // resume audio audio_out->resume(); // resume audio
#ifdef HAVE_NEW_GUI
if(use_gui) if(mplShMem->Playing==2) mplShMem->Playing=1;
#endif
} }
@ -1834,6 +1840,9 @@ mp_msg(MSGT_GLOBAL,MSGL_V,"EOF code: %d \n",eof);
} }
#ifdef HAVE_NEW_GUI
if(use_gui) mplShMem->Playing=0;
#endif
if(curr_filename+1<num_filenames || use_gui){ if(curr_filename+1<num_filenames || use_gui){
// partial uninit: // partial uninit: