[vlc-devel] [PATCH 39/49] qt: reset chapter state when titles changes
Pierre Lamot
pierre at videolabs.io
Fri Oct 11 15:18:03 CEST 2019
---
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;
--
2.20.1
More information about the vlc-devel
mailing list