Permalink
Browse files

Re: r27010 ; use API to read pause status instead of accessing direct…

…ly the protected variable. Write zero buffer in 8ms to reduce startup latency.

git-svn-id: http://svn.mythtv.org/svn/trunk@27069 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 5236d90 commit e5cbe2de39ff2d3eb03bb1da84f5fc13e22997ee @jyavenard jyavenard committed Nov 1, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 mythtv/libs/libmyth/audiooutputbase.cpp
  2. +1 −1 mythtv/libs/libmyth/audiooutputpulse.cpp
@@ -1259,7 +1259,7 @@ void AudioOutputBase::OutputAudioLoop(void)
// only send zeros if card doesn't already have at least one
// fragment of zeros -dag
- WriteAudio(zeros, fragment_size);
+ WriteAudio(zeros, zero_fragment_size);
continue;
}
else
@@ -227,7 +227,7 @@ void AudioOutputPulseAudio::WriteAudio(uchar *aubuf, int size)
pa_stream_state_t sstate = pa_stream_get_state(pstream);
// Do not write anything to pulse server if we are in pause mode
- if (actually_paused)
+ if (IsPaused())
return;
VBAUDIOTS(fn_log_tag + QString("writing %1 bytes").arg(size));

0 comments on commit e5cbe2d

Please sign in to comment.