[MPlayer-dev-eng] [PATCH] dirty frame stepping and and stay in pause after seek
Felix Buenemann
atmosfear at users.sourceforge.net
Thu Jul 18 19:03:07 CEST 2002
On Thursday 18 July 2002 16:36, Michael Niedermayer wrote:
> 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
I already had something like this too, but it has a/v desync probs while in
pause, so we need to find a better solution for this.
> Michael
--
Best Regards,
Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
More information about the MPlayer-dev-eng
mailing list