[Ffmpeg-devel] logs with printf and fprintf
Benjamin Larsson
banan
Tue Feb 7 22:18:12 CET 2006
DKorchev at aol.com wrote:
>Hi,
>
>I have a suggestion that will simplify the integration process of ffmpeg
>into another application.
>
>Current code has a lot of printf and fprintf statements. It would be better
>to define a log function like
>
>void my_log(log_type, message,...);
>
>where log_type is one of these LOG_ERROR, LOG_INFO, LOG_WARNING, etc.
>
>That would make it easier to redirect all messages to a file or suppress
>them depending on application requirements.
>This is easy to change and it does not need to be done for all messages at
>once because it should not break any code.
>
>Thanks,
>
>
There is already av_log, but we havn't replaced all printf's yet. Patches
are welcome.
MvH
Benjamin Larsson
--
"incorrect information" is an oxymoron. Information is, by definition, factual, correct.
More information about the ffmpeg-devel
mailing list