]> git.sesse.net Git - vlc/commit
lib/media: fix MediaListEndReached not sent when media doesn't have sub items
authorThomas Guillem <thomas@gllm.fr>
Wed, 4 Feb 2015 08:55:53 +0000 (08:55 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Feb 2015 14:04:24 +0000 (15:04 +0100)
commitf7da3d84c95efaae7a4ffa44c67df1c92ae026f9
treea36ca459c27c7338cd7deed0ce5862a5a410ad0e
parent4935cbe1fe29346d694dc44792c7d6e309a2c063
lib/media: fix MediaListEndReached not sent when media doesn't have sub items

MediaListEndReached event should not be sent only when a new sub item tree is
added, otherwise it won't be sent if media doesn't have any sub items.

To fix this issue, send the MediaListEndReached event when preparse function
terminates (only if the media_list was created either by user or by sub items
callbacks).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
lib/media.c