[Mplayer-cvslog] CVS: main/libmpdemux asfheader.c,1.32,1.33
Bertrand Baudet
bertrand at mplayerhq.hu
Fri Jul 5 04:48:34 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv27158
Modified Files:
asfheader.c
Log Message:
If network is used, take the streams id that were requested.
Index: asfheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asfheader.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- asfheader.c 25 May 2002 12:56:56 -0000 1.32
+++ asfheader.c 5 Jul 2002 02:48:32 -0000 1.33
@@ -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];
More information about the MPlayer-cvslog
mailing list