[vlc-devel] [PATCH 4/4] aout: remove "dtshd" hack
Thomas Guillem
thomas at gllm.fr
Fri Mar 30 15:15:25 CEST 2018
---
src/audio_output/output.c | 2 --
src/input/decoder.c | 5 -----
2 files changed, 7 deletions(-)
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 63e724e791..ac9d99bd61 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -247,8 +247,6 @@ audio_output_t *aout_New (vlc_object_t *parent)
var_AddCallback (aout, "mute", var_Copy, parent);
var_Create (aout, "device", VLC_VAR_STRING);
var_AddCallback (aout, "device", var_CopyDevice, parent);
- /* TODO: 3.0 HACK: only way to signal DTS_HD to aout modules. */
- var_Create (aout, "dtshd", VLC_VAR_BOOL);
aout->event.volume_report = aout_VolumeNotify;
aout->event.mute_report = aout_MuteNotify;
diff --git a/src/input/decoder.c b/src/input/decoder.c
index c1037c031e..9e70736753 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -364,11 +364,6 @@ static int aout_update_format( decoder_t *p_dec )
p_aout = input_resource_GetAout( p_owner->p_resource );
if( p_aout )
{
- /* TODO: 3.0 HACK: we need to put i_profile inside audio_format_t
- * for 4.0 */
- if( p_dec->fmt_out.i_codec == VLC_CODEC_DTS )
- var_SetBool( p_aout, "dtshd", p_dec->fmt_out.audio.i_profile > 0 );
-
if( aout_DecNew( p_aout, p_dec->fmt_in.i_codec, &format,
&p_dec->fmt_out.audio_replay_gain,
&request_vout ) )
--
2.11.0
More information about the vlc-devel
mailing list