vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Mon Sep 21 15:45:48 2020 +0200| [b5c0d65b661e0a710075c9fcbfae7fd6d0d9dee0] | committer: Felix Paul Kühne
m3u: Expose playlist title (cherry picked from commit 8f26c795b8329219acaad18a5d98a58678799f59) Signed-off-by: Felix Paul Kühne <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b5c0d65b661e0a710075c9fcbfae7fd6d0d9dee0 --- modules/demux/playlist/m3u.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c index 9bd2537979..0b7151f8e6 100644 --- a/modules/demux/playlist/m3u.c +++ b/modules/demux/playlist/m3u.c @@ -281,6 +281,12 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems ) free( psz_album_art ); psz_album_art = pf_dup( psz_parse ); } + else if ( !strncasecmp( psz_parse, "PLAYLIST:", + sizeof( "PLAYLIST:" ) - 1 ) ) + { + psz_parse += sizeof( "PLAYLIST:" ) - 1; + input_item_SetTitle( p_current_input, psz_parse ); + } } else if( !strncasecmp( psz_parse, "RTSPtext", sizeof("RTSPtext") -1 ) ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
