aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-07 16:17:45 +0000
committerGravatar atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-07 16:17:45 +0000
commitb19296cc7ee72862e28fcf50987b37c93172520d (patch)
tree1d65c1c79750114f876517253266b1ac281681fa /libmpdemux
parentbd18a2b995c2beb4842f5f66c76bc1310ae0a98a (diff)
Fix -bandwidth if no streaming available, 10l ;)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6667 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asfheader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpdemux/asfheader.c b/libmpdemux/asfheader.c
index aa8874d3aa..bdb506dfe3 100644
--- a/libmpdemux/asfheader.c
+++ b/libmpdemux/asfheader.c
@@ -322,12 +322,14 @@ while(!stream_eof(demuxer->stream)){
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];