Commit 99f88a0b authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

aout: add HACK to differentiate DTS from DTS-HD

This HACK need to be replaced in 4.0 by adding a profile to audio_format_t or
by passing it to aout modules.

(cherry picked from commit 542c20c7)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 245f29a5
......@@ -224,6 +224,8 @@ 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;
......@@ -365,6 +365,11 @@ 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.i_profile > 0 );
if( aout_DecNew( p_aout, &format,
&request_vout ) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment