[vlc-commits] player: fix false return

Lyndon Brown git at videolan.org
Thu Oct 1 10:25:26 CEST 2020


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Tue Jun 18 04:57:06 2019 +0100| [0d224843fb706c5231fd6e509f6b5016b2484e68] | committer: Thomas Guillem

player: fix false return

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 include/vlc_player.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_player.h b/include/vlc_player.h
index bec0dea9fe..601605de86 100644
--- a/include/vlc_player.h
+++ b/include/vlc_player.h
@@ -1853,7 +1853,7 @@ static inline void
 vlc_player_ToggleSubtitle(vlc_player_t *player)
 {
     bool enabled = !vlc_player_IsSubtitleEnabled(player);
-    return vlc_player_SetSubtitleEnabled(player, enabled);
+    vlc_player_SetSubtitleEnabled(player, enabled);
 }
 
 /**



More information about the vlc-commits mailing list