# HG changeset patch # User bertrand # Date 1025837312 0 # Node ID fc2de514a140ef39a6d46a092c96173ac2effdb5 # Parent f3153f8d4fbe3419efbf4629db006a2df712f0f9 If network is used, take the streams id that were requested. diff -r f3153f8d4fbe -r fc2de514a140 libmpdemux/asfheader.c --- a/libmpdemux/asfheader.c Fri Jul 05 02:47:09 2002 +0000 +++ b/libmpdemux/asfheader.c Fri Jul 05 02:48:32 2002 +0000 @@ -322,6 +322,12 @@ if(streams) { uint32_t vr = 0, ar = 0,i; + if( demuxer->stream->streaming_ctrl!=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_video = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->video_id; + } + } else for(i = 0; i < stream_count; i++) { uint32_t id = streams[2*i]; uint32_t rate = streams[2*i+1];