[MPlayer-cvslog] r25859 - trunk/mplayer.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Jan 26 17:41:58 CET 2008


Hello,
On Sat, Jan 26, 2008 at 05:18:58PM +0100, ben wrote:
> Modified: trunk/mplayer.c
> ==============================================================================
> --- trunk/mplayer.c	(original)
> +++ trunk/mplayer.c	Sat Jan 26 17:18:58 2008
> @@ -3769,6 +3769,14 @@ if(auto_quality>0){
>     mp_dvdnav_get_highlight (mpctx->stream, &hl);
>     osd_set_nav_box (hl.sx, hl.sy, hl.ex, hl.ey);
>     vo_osd_changed (OSDTYPE_DVDNAV);
> +
> +   if (mp_dvdnav_stream_has_changed(mpctx->stream)) {
> +     double ar = -1.0;
> +     if (stream_control (mpctx->demuxer->stream,
> +                         STREAM_CTRL_GET_ASPECT_RATIO, &ar)
> +         != STREAM_UNSUPPORTED)
> +       mpctx->sh_video->stream_aspect = ar;
> +   }

Hmm.. That "!= STREAM_UNSUPPORTED" condition does not make sense to me.
Does it really make sense that upon mp_dvdnav_stream_has_changed we
leave the aspect unchanged if STREAM_CTRL_GET_ASPECT_RATIO is not
supported but set it to -1 if we get an error?
Or actually, is it sensible to assume that ar even has valid content and
is not just undefined when STREAM_CTRL_GET_ASPECT_RATIO fails with e.g.
STREAM_ERROR?

Greetings,
Reimar Döffinger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20080126/8940e01b/attachment.pgp>


More information about the MPlayer-cvslog mailing list