# HG changeset patch # User atmos4 # Date 1026058665 0 # Node ID 349138a7b414a7af5294fb124eba136a4f7c3430 # Parent 3284abe2d73f1995e7a0cf171dffab02b43be37c Fix -bandwidth if no streaming available, 10l ;) diff -r 3284abe2d73f -r 349138a7b414 libmpdemux/asfheader.c --- a/libmpdemux/asfheader.c Sun Jul 07 16:12:30 2002 +0000 +++ b/libmpdemux/asfheader.c Sun Jul 07 16:17:45 2002 +0000 @@ -322,12 +322,14 @@ if(streams) { uint32_t vr = 0, ar = 0,i; +#ifdef STREAMING 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 + } else +#endif for(i = 0; i < stream_count; i++) { uint32_t id = streams[2*i]; uint32_t rate = streams[2*i+1];