changeset 1793:ba11d77c587a

gui status maintaining - now pause from console works, and gui display is in sync with osd
author arpi
date Thu, 30 Aug 2001 23:11:06 +0000
parents 89f616b1c2ae
children fa2b852f494d
files mplayer.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Thu Aug 30 22:56:27 2001 +0000
+++ b/mplayer.c	Thu Aug 30 23:11:06 2001 +0000
@@ -1497,6 +1497,9 @@
 
   if(osd_function==OSD_PAUSE){
       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)
          audio_out->pause();	// pause audio, keep data if possible
          while(
@@ -1518,6 +1521,9 @@
          osd_function=OSD_PLAY;
       if (audio_out && sh_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 @@
 
 }
 
+#ifdef HAVE_NEW_GUI
+      if(use_gui) mplShMem->Playing=0;
+#endif
 
 if(curr_filename+1<num_filenames || use_gui){
     // partial uninit: