[vlc-devel] [PATCH] player: fix only one media played with --play-and-exit
Thomas Guillem
thomas at gllm.fr
Mon Nov 25 17:47:47 CET 2019
With --play-and-exit, alls media will be played and VLC will exit at the end.
With --play-and-stop, VLC will be stopped at the end of the first media.
This difference of behavior may seem weird, but it respects VLC 3.0 behavior.
Fixes #23038
---
src/player/player.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/player/player.c b/src/player/player.c
index d624f7e3456..6f2dbb00a93 100644
--- a/src/player/player.c
+++ b/src/player/player.c
@@ -55,8 +55,8 @@ vlc_player_PrepareNextMedia(vlc_player_t *player)
vlc_player_assert_locked(player);
if (!player->media_provider
- || player->media_stopped_action != VLC_PLAYER_MEDIA_STOPPED_CONTINUE
- || player->next_media_requested)
+ || player->media_stopped_action == VLC_PLAYER_MEDIA_STOPPED_STOP
+ || player->next_media_requested)
return;
assert(player->next_media == NULL);
--
2.20.1
More information about the vlc-devel
mailing list