summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-22 19:02:28 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-22 19:02:28 +0000
commitaa2a852dea8870b744dc07d25601044401f90c90 (patch)
treed0c6fc44389957f998cf2eee9f29dfd68431caf8 /mplayer.c
parentd9e0bdf36fdbd1e518d5f9880e315ca92c1ddb53 (diff)
downloadmpv-aa2a852dea8870b744dc07d25601044401f90c90.tar.bz2
mpv-aa2a852dea8870b744dc07d25601044401f90c90.tar.xz
absolute seek debugging with 1-8 keys (disabled by default)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1628 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 8e6c7054d5..eca2031146 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -272,7 +272,7 @@ float sub_fps=0;
int sub_auto = 1;
/*DSP!!char *dsp=NULL;*/
-float rel_seek_secs=0;
+//float rel_seek_secs=0;
//float initial_pts_delay=0;
extern char *vo_subdevice;
@@ -446,6 +446,7 @@ int v_saturation=50;
//float a_frame=0; // Audio
float rel_seek_secs=0;
+int abs_seek_pos=0;
int i;
int use_stdin=0; //int f; // filedes
@@ -1554,6 +1555,20 @@ if(auto_quality>0){
mixer_usemaster=!mixer_usemaster;
break;
+#if 0 // change to 1 for absolute seeking tests
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ rel_seek_secs=0.99*(float)(c-'1')/7.0;
+ abs_seek_pos=3;
+ printf("ABS seek to %5.3f \n",rel_seek_secs);
+ break;
+#else
// Contrast:
case '1':
case '2':
@@ -1629,6 +1644,7 @@ if(auto_quality>0){
#endif
}
break;
+#endif
case 'd':
frame_dropping=(frame_dropping+1)%3;
@@ -1650,9 +1666,9 @@ if(auto_quality>0){
seek_to_sec = NULL;
}
-if(rel_seek_secs){
+if(rel_seek_secs || abs_seek_pos){
current_module="seek";
- if(demux_seek(demuxer,rel_seek_secs,0)){
+ if(demux_seek(demuxer,rel_seek_secs,abs_seek_pos)){
// success:
if(sh_audio){
@@ -1692,6 +1708,7 @@ if(rel_seek_secs){
}
rel_seek_secs=0;
+ abs_seek_pos=0;
current_module=NULL;
}