Commit 30581898 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* parsed info by mp3 is not retained between demux module probes since...

* parsed info by mp3 is not retained between demux module probes since vlc_meta was introduced. so remove the old logic
This should fix the id3 parsing when you open an mp3.


parent 34f69d64
......@@ -63,24 +63,8 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
{
struct id3_tag *p_id3_tag;
struct id3_frame *p_frame;
input_thread_t *p_input;
vlc_value_t val;
int i = 0;
p_input = vlc_object_find( p_demux, VLC_OBJECT_INPUT, FIND_PARENT );
if( !p_input) return;
var_Get( p_input, "demuxed-id3", &val );
if( val.b_bool )
{
msg_Dbg( p_demux, "the ID3 tag was already parsed" );
vlc_object_release( p_input );
return;
}
val.b_bool = VLC_TRUE;
var_Change( p_input, "demuxed-id3", VLC_VAR_SETVALUE, &val, NULL );
p_id3_tag = id3_tag_parse( p_data, i_size );
if( !p_id3_tag ) return;
......@@ -132,8 +116,6 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
i++;
}
id3_tag_delete( p_id3_tag );
vlc_object_release( p_input );
}
/*****************************************************************************
......
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