[vlc-commits] [Git][videolan/vlc][master] cli: disable tracks whence toggling ID -1
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Mon May 16 16:49:14 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
64f98d32 by Rémi Denis-Courmont at 2022-05-16T16:32:52+00:00
cli: disable tracks whence toggling ID -1
This matches the pre-4.0 behaviour expected of the track commands.
Fixes #26938.
- - - - -
1 changed file:
- modules/control/cli/player.c
Changes:
=====================================
modules/control/cli/player.c
=====================================
@@ -434,7 +434,14 @@ static int PlayerSetTrack(struct cli_client *cl, const char *const *args,
{
int idx = atoi(args[1]);
if (idx < 0)
+ {
+ if (idx == -1)
+ {
+ vlc_player_UnselectTrackCategory(player, cat);
+ ret = 0;
+ }
goto out;
+ }
size_t track_count = vlc_player_GetTrackCount(player, cat);
if ((unsigned)idx >= track_count)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/64f98d32c95d5eb5bf432482d23036a14238aae9
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/64f98d32c95d5eb5bf432482d23036a14238aae9
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list