m3u.c: use input_item_SetTitle
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 8 Oct 2009 20:41:14 +0000 (23:41 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 11 Oct 2009 19:30:36 +0000 (22:30 +0300)
This allow to have channelnames on saved xspf-playlist from dvb-scanning.

modules/demux/playlist/m3u.c

index 6d54c39..c933ddf 100644 (file)
@@ -200,6 +200,7 @@ static int Demux( demux_t *p_demux )
 
             if ( psz_artist && *psz_artist )
                 input_item_SetArtist( p_input, psz_artist );
+            if( psz_name ) input_item_SetTitle( p_input, psz_name );
 
             input_item_AddSubItem( p_current_input, p_input );
             vlc_gc_decref( p_input );