Mercurial > mplayer.hg
comparison libmpdemux/asf_streaming.c @ 12224:acb8ed9cfe70
Fix for some audio asf streams like http://ms.bandeapart.fm/bap/albums/973/6573_h_07-Patience.asf
Patch by adland
author | rtognimp |
---|---|
date | Sat, 17 Apr 2004 16:47:52 +0000 |
parents | 786407b1bc78 |
children | 711cc5720939 |
comparison
equal
deleted
inserted
replaced
12223:e7c8200ffdc5 | 12224:acb8ed9cfe70 |
---|---|
524 ptr = str; | 524 ptr = str; |
525 ptr += sprintf( ptr, "Pragma: stream-switch-entry="); | 525 ptr += sprintf( ptr, "Pragma: stream-switch-entry="); |
526 if(asf_http_ctrl->n_audio > 0) { | 526 if(asf_http_ctrl->n_audio > 0) { |
527 for( i=0; i<asf_http_ctrl->n_audio ; i++ ) { | 527 for( i=0; i<asf_http_ctrl->n_audio ; i++ ) { |
528 stream_id = asf_http_ctrl->audio_streams[i]; | 528 stream_id = asf_http_ctrl->audio_streams[i]; |
529 if(stream_id == asf_http_ctrl->audio_id) { | 529 if(stream_id == asf_http_ctrl->audio_id || !asf_http_ctrl->audio_id) { |
530 enable = 0; | 530 enable = 0; |
531 } else { | 531 } else { |
532 enable = 2; | 532 enable = 2; |
533 } | 533 } |
534 asf_nb_stream++; | 534 asf_nb_stream++; |