id3tag.c: Do not try to seek on network streams even if they have b_seekable set to

true, since this seems to break playback of some streams over http. It also
takes to much time just to get some fancy metadata
parent 6ce30ee1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* id3tag.c: id3 tag parser/skipper based on libid3tag * id3tag.c: id3 tag parser/skipper based on libid3tag
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: id3tag.c,v 1.7 2003/05/25 18:32:17 sigmunau Exp $ * $Id: id3tag.c,v 1.8 2003/06/15 15:16:14 sigmunau Exp $
* *
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* *
...@@ -119,7 +119,8 @@ static int ParseID3Tags( vlc_object_t *p_this ) ...@@ -119,7 +119,8 @@ static int ParseID3Tags( vlc_object_t *p_this )
msg_Dbg( p_input, "Checking for ID3 tag" ); msg_Dbg( p_input, "Checking for ID3 tag" );
if ( p_input->stream.b_seekable ) if ( p_input->stream.b_seekable &&
p_input->stream.i_method != INPUT_METHOD_NETWORK )
{ {
/*look for a id3v1 tag at the end of the file*/ /*look for a id3v1 tag at the end of the file*/
p_pos = malloc( sizeof( stream_position_t ) ); p_pos = malloc( sizeof( stream_position_t ) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment