[FFmpeg-devel] [PATCH] ffmpeg.c : replace perror() by av_log

İsmail Dönmez ismail
Sun Aug 2 19:39:19 CEST 2009


Hi,

2009/8/2 M?ns Rullg?rd <mans at mansr.com>:
>> Index: ffmpeg.c
>> ===================================================================
>> --- ffmpeg.c ?(revision 19566)
>> +++ ffmpeg.c ?(working copy)
>> @@ -1085,7 +1085,7 @@
>> ? ? ?if (!vstats_file) {
>> ? ? ? ? ?vstats_file = fopen(vstats_filename, "w");
>> ? ? ? ? ?if (!vstats_file) {
>> - ? ? ? ? ? ?perror("fopen");
>> + ? ? ? ? ? ?av_log(NULL, AV_LOG_ERROR, "Failed to open stats file: %s\n", strerror(errno));
>
> Maybe it would be nice to print the failing filename too while at it.

New patch attached.

Regards.

-- 
?smail D?NMEZ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-perror.patch
Type: application/octet-stream
Size: 456 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090802/e4dc97ba/attachment.obj>



More information about the ffmpeg-devel mailing list