]> git.sesse.net Git - vlc/commit
playlist: Recurse on ITEM_TYPE_NODE when calculating the duration
authorWieland Hoffmann <themineo@gmail.com>
Sat, 11 Jan 2014 14:10:16 +0000 (14:10 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 12 Jan 2014 17:28:01 +0000 (18:28 +0100)
commit8eae542ad94652396035ee70920ca2ab107033ed
treebe7a0b1642c125ac6915eb0beb3e64a1b362c58a
parente714549a2a69bc1f49b5ebd2893b3e313f4e0e65
playlist: Recurse on ITEM_TYPE_NODE when calculating the duration

When adding an item X whose underlying input_item_t's i_type is
ITEM_TYPE_NODE (like a folder), we need to call playlist_GetNodeDuration
on X again for the duration of X to be the sum of the durations of X's
children.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/playlist/item.c