do not override *file_format if already set by asf_streaming_start()

ASX files containing a playlist were probably not playable at all.

Fixes playback of the following:
http://www.impek.com/go/oldcartoontv/wm
http://www.impek.tv/go/soul/wm
http://www.impek.com/go/tropical2/wm
http://www.impek.com/go/mizik/wm


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25415 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2007-12-15 19:16:49 +00:00
parent 8f186a3535
commit 1fd811a487
1 changed files with 1 additions and 0 deletions

View File

@ -864,6 +864,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
return STREAM_UNSUPPORTED; return STREAM_UNSUPPORTED;
} }
if (*file_format != DEMUXER_TYPE_PLAYLIST)
*file_format = DEMUXER_TYPE_ASF; *file_format = DEMUXER_TYPE_ASF;
stream->type = STREAMTYPE_STREAM; stream->type = STREAMTYPE_STREAM;
fixup_network_stream_cache(stream); fixup_network_stream_cache(stream);