[vlc-commits] player: fix only one media played with --play-and-exit

Thomas Guillem git at videolan.org
Tue Nov 26 08:42:33 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 25 17:33:21 2019 +0100| [65683cd771684e85c181172cb0b2cb972f3553b5] | committer: Thomas Guillem

player: fix only one media played with --play-and-exit

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65683cd771684e85c181172cb0b2cb972f3553b5
---

 src/player/player.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/player/player.c b/src/player/player.c
index d624f7e345..6835ad3409 100644
--- a/src/player/player.c
+++ b/src/player/player.c
@@ -55,7 +55,7 @@ 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->media_stopped_action == VLC_PLAYER_MEDIA_STOPPED_STOP
      || player->next_media_requested)
         return;
 



More information about the vlc-commits mailing list