core: playlist: refactor current media update
commit798fac445b0073893f5976930d54926af61ae452
authorRomain Vimont <rom1v@videolabs.io>
Tue, 11 Dec 2018 14:22:12 +0000 (11 15:22 +0100)
committerThomas Guillem <thomas@gllm.fr>
Tue, 8 Jan 2019 12:32:11 +0000 (8 13:32 +0100)
tree4456438044cdcc541fa231a1ca8769376f02924b
parent23ed2a71418cb7d014481aa44a1a723bed95cebf
core: playlist: refactor current media update

The actions to execute after a content change were factorized in
separate functions (vlc_playlist_ItemsInserted(), etc.).

These functions also updated the current media on the player. Instead,
update it separately, so that we can make several changes while
updating/invalidating the current media only once.

This paves the way to improve the implementation of
vlc_playlist_Expand().

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
src/playlist/content.c