[vlc-commits] m3u: Expose playlist title

Hugo Beauzée-Luyssen git at videolan.org
Fri Sep 25 13:26:59 CEST 2020


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Sep 21 15:45:48 2020 +0200| [9d8051a4a8208dfc58c0dd06f689b8cdac21948f] | committer: Felix Paul Kühne

m3u: Expose playlist title

(cherry picked from commit 8f26c795b8329219acaad18a5d98a58678799f59)
Signed-off-by: Felix Paul Kühne <felix at feepk.net>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=9d8051a4a8208dfc58c0dd06f689b8cdac21948f
---

 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..0463f6e97a 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_demux->p_input_item, psz_parse );
+            }
         }
         else if( !strncasecmp( psz_parse, "RTSPtext", sizeof("RTSPtext") -1 ) )
         {



More information about the vlc-commits mailing list