Commit 6b35f2b1 authored by Rémi Denis-Courmont's avatar 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.
parent 2ee20667
......@@ -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 ) );
if( !strcasecmp( psz_meta_name, "Author" ) )
input_item_SetPublisher( p_input, psz_meta_content );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment