[vlc-commits] qt: reset chapter state when titles changes
Pierre Lamot
git at videolan.org
Mon Oct 14 11:59:40 CEST 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | 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 <jb at videolan.org>
> 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;
More information about the vlc-commits
mailing list