[Mplayer-cvslog] CVS: main mplayer.c,1.644,1.645

Arpi of Ize arpi at mplayerhq.hu
Sat Jan 4 22:06:10 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv22593

Modified Files:
	mplayer.c 
Log Message:
don't show OSD progbar when -loop seeks back
based on patch by Aurelien JACOBS <aurel at gnuage.org>


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.644
retrieving revision 1.645
diff -u -r1.644 -r1.645
--- mplayer.c	3 Jan 2003 20:46:28 -0000	1.644
+++ mplayer.c	4 Jan 2003 21:05:55 -0000	1.645
@@ -192,6 +192,7 @@
 static off_t seek_to_byte=0;
 static off_t step_sec=0;
 static int loop_times=-1;
+static int loop_seek=0;
 
 // A/V sync:
        int autosync=0; // 30 might be a good default value.
@@ -2869,7 +2870,7 @@
     play_n_frames=play_n_frames_mf;
     eof=0;
     abs_seek_pos=3; rel_seek_secs=0; // seek to start of movie (0%)
-
+    loop_seek = 1;
   }
 
 if(rel_seek_secs || abs_seek_pos){
@@ -2908,7 +2909,7 @@
       }
 #ifdef USE_OSD
         // Set OSD:
-      if(osd_level){
+      if(osd_level && !loop_seek){
 #ifdef USE_EDL
 	if( !edl_decision ) {
 #else
@@ -2956,6 +2957,7 @@
   abs_seek_pos=0;
   frame_time_remaining=0;
   current_module=NULL;
+  loop_seek=0;
 }
 
 #ifdef HAVE_NEW_GUI



More information about the MPlayer-cvslog mailing list