audioframe.size = m_pAudioCodec->GetData(&audioframe.data);
audioframe.pts = m_audioClock;
- if (audioframe.size <= 0)
+ if (audioframe.size == 0)
continue;
audioframe.channel_layout = m_pAudioCodec->GetChannelMap();
{
CLog::Log(LOGNOTICE, "running thread: CDVDPlayerAudio::Process()");
- int result;
bool packetadded(false);
DVDAudioFrame audioframe;
while (!m_bStop)
{
//Don't let anybody mess with our global variables
- result = DecodeFrame(audioframe, m_speed > DVD_PLAYSPEED_NORMAL || m_speed < 0 ||
+ int result = DecodeFrame(audioframe, m_speed > DVD_PLAYSPEED_NORMAL || m_speed < 0 ||
CAEFactory::IsSuspended()); // blocks if no audio is available, but leaves critical section before doing so
UpdatePlayerInfo();