Mercurial > mplayer.hg
diff stream/stream.c @ 31683:db0b49579eeb
Rename network build system variable and command line option to networking.
This avoids conflicts with the FFmpeg variable of the same name.
author | diego |
---|---|
date | Sat, 17 Jul 2010 13:14:53 +0000 |
parents | a4ceb52caa30 |
children | dcd515ac5f6c |
line wrap: on
line diff
--- a/stream/stream.c Sat Jul 17 10:28:17 2010 +0000 +++ b/stream/stream.c Sat Jul 17 13:14:53 2010 +0000 @@ -89,7 +89,7 @@ #ifdef CONFIG_CDDA &stream_info_cdda, #endif -#ifdef CONFIG_NETWORK +#ifdef CONFIG_NETWORKING &stream_info_netstream, &stream_info_http1, &stream_info_asf, @@ -181,7 +181,7 @@ s->flags |= mode; *ret = sinfo->open(s,mode,arg,file_format); if((*ret) != STREAM_OK) { -#ifdef CONFIG_NETWORK +#ifdef CONFIG_NETWORKING if (*ret == STREAM_REDIRECTED && redirected_url) { if (s->streaming_ctrl && s->streaming_ctrl->url && s->streaming_ctrl->url->url) @@ -272,7 +272,7 @@ // we will retry even if we already reached EOF previously. switch(s->type){ case STREAMTYPE_STREAM: -#ifdef CONFIG_NETWORK +#ifdef CONFIG_NETWORKING if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) { len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl); } else @@ -343,7 +343,7 @@ // Some streaming protocol allow to seek backward and forward // A function call that return -1 can tell that the protocol // doesn't support seeking. -#ifdef CONFIG_NETWORK +#ifdef CONFIG_NETWORKING if(s->seek) { // new stream seek is much cleaner than streaming_ctrl one if(!s->seek(s,newpos)) { mp_msg(MSGT_STREAM,MSGL_ERR, "Seek failed\n");