Skip to content

Commit

Permalink
fix dvb subtitles (thx DBoxOldie)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Feb 28, 2024
1 parent 4be9957 commit 0b6cd27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/libdvbsub/dvbsub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/gui/moviebrowser/mb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/neutrino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b6cd27

Please sign in to comment.