From 0b6cd27cc09973282189bcf4fbe47a457a7eac16 Mon Sep 17 00:00:00 2001 From: BPanther Date: Wed, 28 Feb 2024 17:23:24 +0100 Subject: [PATCH] fix dvb subtitles (thx DBoxOldie) --- lib/libdvbsub/dvbsub.cpp | 2 +- src/gui/moviebrowser/mb.cpp | 4 ++++ src/neutrino.cpp | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/libdvbsub/dvbsub.cpp b/lib/libdvbsub/dvbsub.cpp index 662479bcb..d7ce0b0aa 100644 --- a/lib/libdvbsub/dvbsub.cpp +++ b/lib/libdvbsub/dvbsub.cpp @@ -187,7 +187,7 @@ int dvbsub_start(int pid) pthread_mutex_lock(&readerMutex); pthread_cond_broadcast(&readerCond); pthread_mutex_unlock(&readerMutex); - printf("[dvb-sub] started with pid 0x%x\n", pid); + printf("[dvb-sub] started with pid 0x%x\n", dvbsub_pid); } return 1; diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 05ccb9250..af1fea4e5 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -1046,6 +1046,8 @@ void CMovieBrowser::hide(void) if (m_pcFilter != NULL) m_currentFilterSelection = m_pcFilter->getSelectedLine(); + CNeutrinoApp::getInstance()->StartSubtitles(); + delete m_pcFilter; m_pcFilter = NULL; @@ -1078,6 +1080,8 @@ int CMovieBrowser::paint(void) //CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8, g_Locale->getText(LOCALE_MOVIEBROWSER_HEAD)); + CNeutrinoApp::getInstance()->StopSubtitles(); + Font *font = g_Font[SNeutrinoSettings::FONT_TYPE_MOVIEBROWSER_LIST]; m_movieSelectionHandler = NULL; diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 483983c6c..dc34f012f 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -5373,7 +5373,7 @@ void CNeutrinoApp::StopSubtitles(bool enable_glcd_mirroring) void CNeutrinoApp::StartSubtitles(bool show) { - //printf("%s: %s\n", __FUNCTION__, show ? "Show" : "Not show"); + //printf("[neutrino] %s: %s\n", __FUNCTION__, show ? "Show" : "Not show"); if (CMoviePlayerGui::getInstance().Playing()) { CMoviePlayerGui::getInstance().StartSubtitles(show); return;