Mercurial > mplayer.hg
changeset 4073:5f28d9d7d346
Changed the return value of the start function. Doesn't return the fd
anymore. Just -1 for fail and 0 for OK.
author | bertrand |
---|---|
date | Thu, 10 Jan 2002 01:42:31 +0000 |
parents | eac2948c00d4 |
children | aca490499e1f |
files | libmpdemux/asf_streaming.c |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/asf_streaming.c Thu Jan 10 01:37:53 2002 +0000 +++ b/libmpdemux/asf_streaming.c Thu Jan 10 01:42:31 2002 +0000 @@ -610,15 +610,15 @@ } break; case ASF_Redirector_e: - if( http_hdr->body_size>0 ) { - if( streaming_bufferize( stream->streaming_ctrl, http_hdr->body, http_hdr->body_size )<0 ) { - http_free( http_hdr ); - return -1; - } - } - stream->type = STREAMTYPE_PLAYLIST; - done = 1; - break; + if( http_hdr->body_size>0 ) { + if( streaming_bufferize( stream->streaming_ctrl, http_hdr->body, http_hdr->body_size )<0 ) { + http_free( http_hdr ); + return -1; + } + } + stream->type = STREAMTYPE_PLAYLIST; + done = 1; + break; case ASF_Unknown_e: default: printf("Unknown ASF streaming type\n"); @@ -629,7 +629,7 @@ // Check if we got a redirect. } while(!done); - stream->fd= fd; + stream->fd = fd; if( streaming_type==ASF_PlainText_e || streaming_type==ASF_Redirector_e ) { stream->streaming_ctrl->streaming_read = nop_streaming_read; stream->streaming_ctrl->streaming_seek = nop_streaming_seek; @@ -642,6 +642,6 @@ stream->streaming_ctrl->status = streaming_playing_e; http_free( http_hdr ); - return fd; + return 0; }