vlc | branch: master | Pierre Lamot <[email protected]> | Wed Oct  9 11:46:20 
2019 +0200| [40a736d1902ed7da59bd964592a462d3ef8f3977] | committer: 
Jean-Baptiste Kempf

qt: reset chapter state when titles changes

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/gui/qt/components/player_controller.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/qt/components/player_controller.cpp 
b/modules/gui/qt/components/player_controller.cpp
index b4432ccdaa..3bfafcc338 100644
--- a/modules/gui/qt/components/player_controller.cpp
+++ b/modules/gui/qt/components/player_controller.cpp
@@ -498,6 +498,11 @@ static void on_player_titles_changed(vlc_player_t *, 
struct vlc_player_title_lis
             that->m_hasTitles = hasTitles;
             emit that->q_func()->hasTitlesChanged(hasTitles);
         }
+        if (!hasTitles && that->m_hasChapters)
+        {
+            that->m_hasChapters = false;
+            emit that->q_func()->hasChaptersChanged(false);
+        }
         if (hasMenu != that->m_hasMenu)
         {
             that->m_hasMenu = hasMenu;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to