[MPlayer-dev-eng] [PATCH] dirty frame stepping and and stay in pause after seek

Michael Niedermayer michaelni at gmx.at
Thu Jul 18 16:36:19 CEST 2002


Hi

On Thursday 18 July 2002 16:07, Alban Bedel wrote:
[...]
> >      case KEY_DOWN:
> > +      if(osd_function==OSD_PAUSE) mplayer_put_key(32);
> >        osd_function=OSD_REW;
> >        rel_seek_secs-=60;break;
> >      // seek 10 min
>
> This is the old input code wich isn't used by default and afaik it's
> planned to remove it.
>
> > @@ -2314,6 +2321,7 @@
> >        int v,abs;
> >        v = cmd->args[0].v.i;
> >        abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
> > +      if(osd_function==OSD_PAUSE) mplayer_put_key(32);
> >        if(abs) {
> >  	abs_seek_pos = 3;
> >  	if(sh_video)
>
> This is the new code where command are indepandant from the key used (it
> may not even come from a keyboard event). So it doesn't make sense to use
> mplayer_put_key here as this key may not trigger the event you want if the
> user have different key binding. You must use mp_input_queue_cmd with the
> right command here (see input/input.[ch]).
well, as subj says its dirty, i dont know much about mplayers input handling 
code, i just needed frame skiping and so i hacked it into my local tree long 
time ago (it broke after a recent commit by atmos) and after fixing my local 
tree again i just thought it might be usefull so i posted it, it wasnt 
inteded to be clean, correct or anything like that
[...]

Michael



More information about the MPlayer-dev-eng mailing list