changeset 20750:582c0088ed65

now the OSD shows the value returned by demuxer_get_current_time() rather than sh_video->pts
author nicodvb
date Tue, 07 Nov 2006 22:57:42 +0000
parents eafd9953b505
children 3dbb3fa4e5fc
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Tue Nov 07 22:55:49 2006 +0000
+++ b/mplayer.c	Tue Nov 07 22:57:42 2006 +0000
@@ -1477,7 +1477,7 @@
             int len = demuxer_get_time_length(demuxer);
             int percentage = -1;
             char percentage_text[10];
-            int pts = sh_video->pts;
+            int pts = demuxer_get_current_time(demuxer);
             
             if (osd_show_percentage)
                 percentage = demuxer_get_percent_pos(demuxer);