Skip to content

Commit

Permalink
fixed: xbmc#9898 DVD without menu but with default subtitle doesn't a…
Browse files Browse the repository at this point in the history
…lways display the correct subtitle

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@33229 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
elupus committed Aug 27, 2010
1 parent 2c34b03 commit 9a3b743
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -376,6 +376,12 @@ int CDVDInputStreamNavigator::ProcessBlock(BYTE* dest_buffer, int* read)
//libdvdnav never sets logical, why.. don't know..
event->logical = GetActiveSubtitleStream();

if(event->logical<0 && GetSubTitleStreamCount()>0)
{
/* this will not take effect in this event */
CLog::Log(LOGINFO, "%s - none or invalid subtitle stream selected, defaulting to first", __FUNCTION__);
SetActiveSubtitleStream(0);
}
m_bCheckButtons = true;
iNavresult = m_pDVDPlayer->OnDVDNavResult(buf, DVDNAV_SPU_STREAM_CHANGE);
}
Expand Down

0 comments on commit 9a3b743

Please sign in to comment.