[MPlayer-dev-eng] [PATCH] add support for more verbose console output if -osd-fractions is enabled

Dan Oscarsson Dan.Oscarsson at tieto.com
Tue Dec 6 10:33:31 CET 2011


mån 2011-12-05 klockan 19:35 +0100 skrev Reimar Döffinger:
> On Mon, Dec 05, 2011 at 10:07:47AM -0700, Roger Pack wrote:
> > This allows users to see more precise timestamps, like
> > A:  3.36 V:  3.37 A-V: -0.004 ct:  0.095  88/ 85 19% 33%  8.2% 28 0
> > if they enable -osd-fractions (thanks for the idea, as proposed on the
> > users mailing list).
> 
> Duplicating the whole saddf line seems a bit overkill to me,
> something like
> saddf(line, &pos, width,
>       osd_fractions ? "A:%6.2f " : "A:%6.1f ",
>       a_pos);
> should do it just as well?

Maybe we should move the setting of the format text outside the saddf
statement. I have a patch for enhanced status line that I have used for
over a year and that also includes more decimals. Adding it to this will
result in three different formats. Or do you prefer to have it inline?

   Dan



More information about the MPlayer-dev-eng mailing list