Skip to content

Commit

Permalink
[aml] only force s/w for vob files
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Jan 3, 2016
1 parent 2da45bd commit b4ca1d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xbmc/cores/dvdplayer/DVDCodecs/DVDFactoryCodec.cpp
Expand Up @@ -225,15 +225,17 @@ CDVDVideoCodec* CDVDFactoryCodec::CreateVideoCodec(CDVDStreamInfo &hint, const C
{
switch(hint.codec)
{
// case AV_CODEC_ID_MPEG4:
// case AV_CODEC_ID_MSMPEG4V2:
// case AV_CODEC_ID_MSMPEG4V3:
/*
case AV_CODEC_ID_MPEG4:
case AV_CODEC_ID_MSMPEG4V2:
case AV_CODEC_ID_MSMPEG4V3:
case AV_CODEC_ID_MPEG1VIDEO:
case AV_CODEC_ID_MPEG2VIDEO:
// Avoid h/w decoder for SD; Those files might use features
// not supported and can easily be soft-decoded
if (hint.width <= 800)
break;
*/
default:
if ( (pCodec = OpenCodec(new CDVDVideoCodecAmlogic(), hint, options)) ) return pCodec;
}
Expand Down
9 changes: 9 additions & 0 deletions xbmc/cores/dvdplayer/DVDPlayer.cpp
Expand Up @@ -3437,6 +3437,15 @@ bool CDVDPlayer::OpenVideoStream(CDVDStreamInfo& hint, bool reset)
}
}
}
if (m_pInputStream)
{
std::string filename = m_pInputStream->GetFileName();
if (StringUtils::EndsWithNoCase(filename, "vob"))
{
CLog::Log(LOGDEBUG, "CDVDPlayer::OpenVideoStream -- %s", filename.c_str());
hint.software = true;
}
}

CDVDInputStream::IMenus* pMenus = dynamic_cast<CDVDInputStream::IMenus*>(m_pInputStream);
if(pMenus && pMenus->IsInMenu())
Expand Down

0 comments on commit b4ca1d1

Please sign in to comment.