Skip to content

Commit

Permalink
Fix clang report
Browse files Browse the repository at this point in the history
Fixes #10484
  • Loading branch information
jyavenard authored and daniel-kristjansson committed Apr 5, 2012
1 parent 5096902 commit 69836c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mythtv/libs/libmyth/audio/audiooutputpulse.cpp
Expand Up @@ -286,7 +286,7 @@ void AudioOutputPulseAudio::WriteAudio(uchar *aubuf, int size)

int AudioOutputPulseAudio::GetBufferedOnSoundcard(void) const
{
pa_usec_t latency = (pa_usec_t) -1;
pa_usec_t latency = 0;
size_t buffered = 0;

if (!pcontext || pa_context_get_state(pcontext) != PA_CONTEXT_READY)
Expand All @@ -313,11 +313,6 @@ int AudioOutputPulseAudio::GetBufferedOnSoundcard(void) const

pa_threaded_mainloop_unlock(mainloop);

if (latency < 0)
{
latency = 0;
}

return ((uint64_t)latency * samplerate *
output_bytes_per_frame / 1000000) + buffered;
}
Expand Down

0 comments on commit 69836c2

Please sign in to comment.