mirror of https://github.com/mpv-player/mpv
Fill stream->end_pos if possible, fixing lavf demuxers that need to seek.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26031 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6334e53e95
commit
67352a6575
|
@ -818,8 +818,10 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
|
|||
if( content_type!=NULL ) {
|
||||
char *content_length = NULL;
|
||||
mp_msg(MSGT_NETWORK,MSGL_V,"Content-Type: [%s]\n", content_type );
|
||||
if( (content_length = http_get_field(http_hdr, "Content-Length")) != NULL)
|
||||
if( (content_length = http_get_field(http_hdr, "Content-Length")) != NULL) {
|
||||
mp_msg(MSGT_NETWORK,MSGL_V,"Content-Length: [%s]\n", http_get_field(http_hdr, "Content-Length"));
|
||||
stream->end_pos = atoi(content_length);
|
||||
}
|
||||
// Check in the mime type table for a demuxer type
|
||||
i = 0;
|
||||
while(mime_type_table[i].mime_type != NULL) {
|
||||
|
|
Loading…
Reference in New Issue