changeset 1504:f4f686aed404

modified mplayer.c to rewert to PLAY after rewinding after 1 sec
author atlka
date Mon, 13 Aug 2001 13:12:49 +0000
parents 1af1f37efd67
children 842c29861e25
files libvo/sub.c mplayer.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/sub.c	Mon Aug 13 11:45:21 2001 +0000
+++ b/libvo/sub.c	Mon Aug 13 13:12:49 2001 +0000
@@ -196,8 +196,6 @@
    while (l--){
        x = xtbl[i++];
        while ((c=utbl[k++])){
-//	     c=utbl[k]; 
-//	     k++;
 	     if (x>=0 && x+vo_font->width[c]<=dxs)
 		if ((font=vo_font->font[c])>=0)
 	           draw_alpha(x,y,
--- a/mplayer.c	Mon Aug 13 11:45:21 2001 +0000
+++ b/mplayer.c	Mon Aug 13 13:12:49 2001 +0000
@@ -1446,8 +1446,10 @@
 
 #ifdef USE_OSD
   if(osd_visible){
-    --osd_visible;
-    if(!osd_visible) vo_osd_progbar_type=-1; // disable
+    if (!--osd_visible){ vo_osd_progbar_type=-1; // disable
+       if (osd_function != OSD_PAUSE)
+	   osd_function = OSD_PLAY;
+    }
   }
 #endif
 
@@ -1699,7 +1701,7 @@
       
       c_total=0;
       max_pts_correction=0.1;
-//      force_redraw=5;
+      osd_visible=sh_video->fps; // to rewert to PLAY pointer after 1 sec
       audio_time_usage=0; video_time_usage=0; vout_time_usage=0;
       drop_frame_cnt=0;