comparison libmpdemux/demux_asf.c @ 3475:390388c75209

Applied the patch from Alban Bedel <albeu@free.fr> to make the asf network streaming work for some links.
author bertrand
date Wed, 12 Dec 2001 22:35:51 +0000
parents 4f3e8c8ea32f
children 374f2cc73d0d
comparison
equal deleted inserted replaced
3474:47983b6a042d 3475:390388c75209
139 // 0 = EOF or no stream found 139 // 0 = EOF or no stream found
140 // 1 = successfully read a packet 140 // 1 = successfully read a packet
141 int demux_asf_fill_buffer(demuxer_t *demux){ 141 int demux_asf_fill_buffer(demuxer_t *demux){
142 142
143 demux->filepos=stream_tell(demux->stream); 143 demux->filepos=stream_tell(demux->stream);
144 if(demux->filepos>=demux->movi_end){ 144 // Brodcast stream have movi_start==movi_end
145 // Better test ?
146 if((demux->movi_start != demux->movi_end) && (demux->filepos>=demux->movi_end)){
145 demux->stream->eof=1; 147 demux->stream->eof=1;
146 return 0; 148 return 0;
147 } 149 }
148 150
149 stream_read(demux->stream,asf_packet,asf_packetsize); 151 stream_read(demux->stream,asf_packet,asf_packetsize);