[FFmpeg-devel] [patch] error codes for http/tcp

Michael Niedermayer michaelni
Fri Jun 22 09:22:21 CEST 2007


Hi

On Thu, Jun 21, 2007 at 11:45:44PM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> attached patch improves error code returns from http/tcp code, such that
> applications receiving such errors can display actually useful errors to the
> user rather than "-1". Don't know how to do HOSTUNREACH, so I made that
> ENODEV with an exception for that errno in my code, but I guess that's not
> ideal here...

the patch should be split in tcp and http parts

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- 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/ffmpeg-devel/attachments/20070622/7819da33/attachment.pgp>



More information about the ffmpeg-devel mailing list