Skip to content

Commit

Permalink
videoplayer: drop SETTING_AUDIOOUTPUT_SUPPORTSDTSHDCPUDECODING
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Dec 11, 2015
1 parent ab6ac85 commit 5c4dcb0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
16 changes: 0 additions & 16 deletions system/settings/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2574,22 +2574,6 @@
</constraints>
<control type="list" format="string" />
</setting>
<setting id="audiooutput.supportdtshdcpudecoding" type="boolean" label="38019" help="38020">
<level>2</level>
<default>false</default>
<control type="toggle" />
<dependencies>
<dependency type="enable">
<or>
<condition setting="audiooutput.passthrough" operator="is">false</condition>
<and>
<condition setting="audiooutput.dtshdpassthrough" operator="is">false</condition>
<condition setting="audiooutput.dtspassthrough" operator="is">false</condition>
</and>
</or>
</dependency>
</dependencies>
</setting>
</group>
<group id="2">
<setting id="audiooutput.dspaddonsenabled" type="boolean" label="36441" help="36438">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool CDVDAudioCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
AVCodec* pCodec = NULL;
m_bOpenedCodec = false;

if (hints.codec == AV_CODEC_ID_DTS && CSettings::GetInstance().GetBool(CSettings::SETTING_AUDIOOUTPUT_SUPPORTSDTSHDCPUDECODING))
if (hints.codec == AV_CODEC_ID_DTS)
pCodec = avcodec_find_decoder_by_name("libdcadec");

if (!pCodec)
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ bool CDVDDemuxFFmpeg::Open(CDVDInputStream* pInput, bool streaminfo, bool filein
st->codec->codec = pCodec;
}
}

/* to speed up dvd switches, only analyse very short */
if(m_pInput->IsStreamType(DVDSTREAM_TYPE_DVD))
av_opt_set_int(m_pFormatContext, "analyzeduration", 500000, 0);
Expand Down

0 comments on commit 5c4dcb0

Please sign in to comment.