Skip to content

Commit

Permalink
Initialise audioOutput object if it exists.
Browse files Browse the repository at this point in the history
Code incorrectly assumed that the only place the creation of the audioOutput object was done in MythPlayer. Mythtranscode creates its own audioOutput object and use AudioPlayer::SetAudioOutput to set it.
Now if an audio object exists, we initialise it no matter what. This will likely increase verbosity in some cases

Fixes #9425
  • Loading branch information
jyavenard committed Mar 21, 2011
1 parent 0b1f9d2 commit 53c9471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/audioplayer.cpp
Expand Up @@ -133,7 +133,7 @@ QString AudioPlayer::ReinitAudio(void)
}
AddVisuals();
}
else if (want_audio && !m_no_audio_in)
else if (!m_no_audio_in && m_audioOutput)
{
const AudioSettings settings(m_format, m_channels, m_codec,
m_samplerate, m_passthru, 0,
Expand Down

0 comments on commit 53c9471

Please sign in to comment.