[vlc-commits] qt: fix if-block scope

Romain Vimont git at videolan.org
Fri May 24 14:00:52 CEST 2019


vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Fri May 24 13:44:57 2019 +0200| [2ff16109cd3af6e92e42152e45954e7a2d1baab5] | committer: Hugo Beauzée-Luyssen

qt: fix if-block scope

Oops.

Fixes commit 3f659b04f6fb31844a929423b8844f725eb2d6ab.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/gui/qt/components/player_controller.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/player_controller.cpp b/modules/gui/qt/components/player_controller.cpp
index c37ce20e17..a58c824c71 100644
--- a/modules/gui/qt/components/player_controller.cpp
+++ b/modules/gui/qt/components/player_controller.cpp
@@ -198,8 +198,10 @@ static  void on_player_current_media_changed(vlc_player_t *, input_item_t *new_m
     msg_Dbg( that->p_intf, "on_player_current_media_changed");
 
     if (!new_media)
+    {
         emit that->q_func()->inputChanged(false);
-    return;
+        return;
+    }
 
     InputItemPtr newMediaPtr = InputItemPtr( new_media );
     that->callAsync([that,newMediaPtr] () {



More information about the vlc-commits mailing list