[FFmpeg-devel] [PATCH] Declare the url_write buffer parameter as const

Michael Niedermayer michaelni
Tue Jun 1 00:43:15 CEST 2010


On Mon, May 31, 2010 at 11:47:35PM +0300, Martin Storsj? wrote:
> Hi,
> 
> This adds const correctness to the url_write function and all the 
> protocols implementing it. Additionally, this fixes a warning in the RTSP 
> code.
> 
> // Martin
>  avio.c      |    2 +-
>  avio.h      |    4 ++--
>  file.c      |    2 +-
>  gopher.c    |    2 +-
>  http.c      |    4 ++--
>  librtmp.c   |    2 +-
>  rtmpproto.c |    2 +-
>  rtpproto.c  |    2 +-
>  tcp.c       |    2 +-
>  udp.c       |    2 +-
>  10 files changed, 12 insertions(+), 12 deletions(-)
> 89c902a97df17047b4eb02f51810de6e793eea1d  0001-Declare-the-url_write-buffer-parameter-as-const.patch
> From 7cb2d7f7c4ee25ca10eaeee0ef70d8fcd848a0eb Mon Sep 17 00:00:00 2001
> From: Martin Storsjo <martin at martin.st>
> Date: Mon, 31 May 2010 23:36:32 +0300
> Subject: [PATCH] Declare the url_write buffer parameter as const

should be ok

[...]
-- 
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: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100601/e35cfb0e/attachment.pgp>



More information about the ffmpeg-devel mailing list