[MPlayer-cvslog] r26031 - trunk/stream/http.c
albeu
subversion at mplayerhq.hu
Tue Feb 19 19:04:10 CET 2008
Author: albeu
Date: Tue Feb 19 19:04:10 2008
New Revision: 26031
Log:
Fill stream->end_pos if possible, fixing lavf demuxers that need to seek.
Modified:
trunk/stream/http.c
Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c (original)
+++ trunk/stream/http.c Tue Feb 19 19:04:10 2008
@@ -818,8 +818,10 @@ static int http_streaming_start(stream_t
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) {
More information about the MPlayer-cvslog
mailing list