[MPlayer-dev-eng] [PATCH] mp_msg - avoid having status line overwrite messages

Dan Oscarsson Dan.Oscarsson at tieto.com
Mon Jun 28 19:14:17 CEST 2010


Many debug or information messages printed through mp_msg disappear as
they are overwritten by the status line. I got tiered of adding extra
new lines just to see my debug/information lines and tried to fix it in
the mp_msg code instead. The attached patch tries to identify when the
last output line is a status line ending in \r and output a new line
first when a non-status line is output. There may still be places where
code in mplayer does extra output to avoid being overwritten by status
line, that I have missed, but mostly it works ok for me.

  Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp_msg.diff
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100628/72070374/attachment.bin>


More information about the MPlayer-dev-eng mailing list