[MPlayer-dev-eng] [PATCH] movie_aspect switching at runtime

Attila Kinali attila at kinali.ch
Sat Sep 11 14:58:41 CEST 2004


On Fri, Sep 03, 2004 at 03:17:30AM +0200, Aurelien Jacobs wrote:
> On Thu, 2 Sep 2004 15:25:43 +0000
> Sascha Sommer <saschasommer at freenet.de> wrote:
> 
> > On Friday 27 August 2004 11:39, Aurelien Jacobs wrote:
> > > This patch add a new slave command to change the movie_aspect at
> > > runtime. Will document it if it's ok.
> > >
> +    case MP_CMD_SWITCH_RATIO : {
> +      if (cmd->nargs == 0)
> +        movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;
> +      else
> +        movie_aspect = cmd->args[0].v.f;
> +      mpcodecs_config_vo (sh_video, sh_video->disp_w, sh_video->disp_h, 0);
> +    } break;

I really doubt that this works w/o negative side effects.
Changing aspect on runtime requires a reinit of the whole vf/vo chain.

			Attila Kinali




More information about the MPlayer-dev-eng mailing list