vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun May 14 21:32:31 2017 +0300| [6b35f2b1a7e9628c1407a0d8066089fcf6f918da] | committer: Rémi Denis-Courmont
WPL: do not fill duration to playlist node input item The duration of an input item is supposed to represent its proper duration, not the total duration of its descendants. The duration of a (pure) playlist is therefore always zero. Otherwise, playlist_GetNodeDuration() would account for the same playback time twice. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b35f2b1a7e9628c1407a0d8066089fcf6f918da --- modules/demux/playlist/wpl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/demux/playlist/wpl.c b/modules/demux/playlist/wpl.c index eb96cfe5c2..9e2296c05c 100644 --- a/modules/demux/playlist/wpl.c +++ b/modules/demux/playlist/wpl.c @@ -102,7 +102,8 @@ static void parse_meta( demux_t* p_demux, input_item_t* p_input ) goto done; if( !strcasecmp( psz_meta_name, "TotalDuration" ) ) - input_item_SetDuration( p_input, atoll( psz_meta_content ) ); + input_item_AddInfo( p_input, _("Playlist"), _("Total duration"), + "%lld", atoll( psz_meta_content ) ); else if( !strcasecmp( psz_meta_name, "Author" ) ) input_item_SetPublisher( p_input, psz_meta_content ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
