Ticket #1361: stream-tolerance.patch
| File stream-tolerance.patch, 2.3 KB (added by , 18 years ago) |
|---|
-
stream/http.c
211 211 212 212 switch( http_hdr->status_code ) { 213 213 case 200: // OK 214 case 206: // Partial Content 214 215 mp_msg(MSGT_NETWORK,MSGL_V,"Content-Type: [%s]\n", http_get_field(http_hdr, "Content-Type") ); 215 216 mp_msg(MSGT_NETWORK,MSGL_V,"Content-Length: [%s]\n", http_get_field(http_hdr, "Content-Length") ); 216 217 if( http_hdr->body_size>0 ) { … … 778 779 if( !strcasecmp(http_hdr->protocol, "ICY") || 779 780 http_get_field(http_hdr, "Icy-MetaInt") ) { 780 781 switch( http_hdr->status_code ) { 781 case 200: { // OK 782 case 200: // OK 783 case 206: // Partial Content 784 { 782 785 char *field_data; 783 786 // If content-type == video/nsv we most likely have a winamp video stream 784 787 // otherwise it should be mp3. if there are more types consider adding mime type … … 813 816 // Assume standard http if not ICY 814 817 switch( http_hdr->status_code ) { 815 818 case 200: // OK 819 case 206: // Partial Content 816 820 // Look if we can use the Content-Type 817 821 content_type = http_get_field( http_hdr, "Content-Type" ); 818 822 if( content_type!=NULL ) { -
stream/stream_ftp.c
340 340 s->eof = 1; 341 341 return 0; 342 342 } 343 344 // Send the NOOP command 345 // some clients may handle telnet seq. as part of next command 346 FtpSendCmd("NOOP",p,rsp_txt); 347 343 348 // Send the ABOR command 344 349 // Ignore the return code as sometimes it fail with "nothing to abort" 345 350 FtpSendCmd("ABOR",p,rsp_txt); -
stream/stream_cddb.c
299 299 300 300 switch(http_hdr->status_code) { 301 301 case 200: 302 case 206: 302 303 ret = reply_parser(http_hdr, cddb_data); 303 304 break; 304 305 case 400: … … 526 527 527 528 switch(status) { 528 529 case 200: 530 case 206: 529 531 // Found exact match 530 532 ret = sscanf(http_hdr->body, "%d %99s %08lx %99s", &status, cddb_data->category, &(cddb_data->disc_id), album_title); 531 533 if( ret!=4 ) {
