Mercurial > mplayer.hg
diff stream/asf_streaming.c @ 36582:b28f3ff37ae7
Use av_unused for unused arguments instead of various hacks.
author | reimar |
---|---|
date | Mon, 20 Jan 2014 22:08:48 +0000 |
parents | 389d43c448b3 |
children |
line wrap: on
line diff
--- a/stream/asf_streaming.c Mon Jan 20 22:08:47 2014 +0000 +++ b/stream/asf_streaming.c Mon Jan 20 22:08:48 2014 +0000 @@ -43,6 +43,7 @@ #include "network.h" #include "tcp.h" +#include "libavutil/attributes.h" #include "libavutil/intreadwrite.h" #include "libmpdemux/asfguid.h" @@ -454,12 +455,8 @@ return read; } -static int asf_http_streaming_seek( int fd, int64_t pos, streaming_ctrl_t *streaming_ctrl ) { +static int asf_http_streaming_seek( int av_unused fd, int64_t av_unused pos, streaming_ctrl_t * av_unused streaming_ctrl ) { return -1; - // to shut up gcc warning - fd++; - pos++; - streaming_ctrl=NULL; } static int asf_header_check( HTTP_header_t *http_hdr ) {