- {
- vlc_input_item_AddInfo( &p_item->input,
- _("Meta-information"),
- _( "Bitrate" ),
- "%s",
- psz_bitrate );
- }
- playlist_NodeAddItem( p_playlist, p_item,
- p_current->pp_parents[0]->i_view,
- p_current, PLAYLIST_APPEND,
- PLAYLIST_END );
-
- /* We need to declare the parents of the node as the
- * * same of the parent's ones */
- playlist_CopyParents( p_current, p_item );
-
- vlc_input_item_CopyOptions( &p_current->input,
- &p_item->input );
- if( b_shoutcast )
- {
- char *psz_genreToken;
- char *psz_otherToken;
- int i = 0;
-
- psz_genreToken = psz_genre;
-
- /* split up the combined genre string form
- shoutcast and add the individual genres */
- while ( psz_genreToken &&
- ( psz_otherToken = GetNextToken(psz_genreToken )))
- {
- if( strlen(psz_genreToken)>2 )
- /* We dont want genres below 2 letters,
- this gets rid of alot of junk*/
- {
- /* lowercase everything */
- for( i=0; psz_genreToken[i]!=0; i++ )
- psz_genreToken[i] =
- tolower(psz_genreToken[i]);
- /* Make first letter uppercase, purely cosmetical */
- psz_genreToken[0] =
- toupper( psz_genreToken[0] );
- ShoutcastAdd( p_playlist, p_genre,
- p_bitrate, p_item,
- psz_genreToken, psz_bitrate );
-
- psz_genreToken = psz_otherToken;
- }
- }
- }
-
-#define FREE(a) if( a ) free( a ); a = NULL;
- FREE( psz_name );
- FREE( psz_mrl );
- FREE( psz_genre );
- FREE( psz_bitrate );
- FREE( psz_listeners );
- FREE( psz_now );
-#undef FREE
+ msg_Err( p_demux, "Unsupported meta bitrate" );
+
+ input_item_node_AppendItem( p_subitems, p_input );
+ vlc_gc_decref( p_input );
+ FREENULL( psz_title );
+ FREENULL( psz_mrl );
+ FREENULL( psz_genre );
+ FREENULL( psz_bitrate );
+ FREENULL( psz_listeners );
+ FREENULL( psz_now );