1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

Fix -bandwidth if no streaming available, 10l ;)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6667 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-07-07 16:17:45 +00:00
parent bd18a2b995
commit b19296cc7e

View File

@ -322,12 +322,14 @@ while(!stream_eof(demuxer->stream)){
if(streams) { if(streams) {
uint32_t vr = 0, ar = 0,i; uint32_t vr = 0, ar = 0,i;
#ifdef STREAMING
if( demuxer->stream->streaming_ctrl!=NULL ) { if( demuxer->stream->streaming_ctrl!=NULL ) {
if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) { if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) {
best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id; best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id;
best_video = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->video_id; best_video = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->video_id;
} }
} else } else
#endif
for(i = 0; i < stream_count; i++) { for(i = 0; i < stream_count; i++) {
uint32_t id = streams[2*i]; uint32_t id = streams[2*i];
uint32_t rate = streams[2*i+1]; uint32_t rate = streams[2*i+1];