summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-10 01:42:31 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-10 01:42:31 +0000
commit180ae10466de2b986d159b463697aa5837a54164 (patch)
tree9214d3bb274d64ac52be0f1cae5be715594d0798
parente2e270a848314a03cb529f3e46fa550e331c00ff (diff)
downloadmpv-180ae10466de2b986d159b463697aa5837a54164.tar.bz2
mpv-180ae10466de2b986d159b463697aa5837a54164.tar.xz
Changed the return value of the start function. Doesn't return the fd
anymore. Just -1 for fail and 0 for OK. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4074 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/asf_streaming.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libmpdemux/asf_streaming.c b/libmpdemux/asf_streaming.c
index df6f088f17..a7773bff18 100644
--- a/libmpdemux/asf_streaming.c
+++ b/libmpdemux/asf_streaming.c
@@ -610,15 +610,15 @@ printf("read: %d\n", i );
}
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 @@ printf("read: %d\n", i );
// 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 @@ printf("read: %d\n", i );
stream->streaming_ctrl->status = streaming_playing_e;
http_free( http_hdr );
- return fd;
+ return 0;
}