summaryrefslogtreecommitdiffstats
path: root/libmpdemux/asfheader.c
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-05 02:48:32 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-05 02:48:32 +0000
commit20fd97f1057949ab18a28653d68e70c61f508f8a (patch)
tree1cc8f31c647d9e21c197a7dfb45ea22899c93910 /libmpdemux/asfheader.c
parentf1326177cc4b30f2885ddd6a4ee602d3842b9295 (diff)
downloadmpv-20fd97f1057949ab18a28653d68e70c61f508f8a.tar.bz2
mpv-20fd97f1057949ab18a28653d68e70c61f508f8a.tar.xz
If network is used, take the streams id that were requested.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6646 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/asfheader.c')
-rw-r--r--libmpdemux/asfheader.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpdemux/asfheader.c b/libmpdemux/asfheader.c
index 2edc7dac7a..aa8874d3aa 100644
--- a/libmpdemux/asfheader.c
+++ b/libmpdemux/asfheader.c
@@ -322,6 +322,12 @@ while(!stream_eof(demuxer->stream)){
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];