Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not attempt to increase ALSA buffer size if it's already set to th…

…e maximum the hardware can handle
  • Loading branch information...
commit 9d533f3de7c5e73704c555bec0df58710e0b4f43 1 parent b41e218
@jyavenard jyavenard authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 mythtv/libs/libmyth/audiooutputalsa.cpp
View
7 mythtv/libs/libmyth/audiooutputalsa.cpp
@@ -246,6 +246,13 @@ bool AudioOutputALSA::IncPreallocBufferSize(int requested, int buffer_time)
VBAUDIO(QString("Hardware audio buffer cur: %1 need: %2 max allowed: %3")
.arg(cur).arg(size).arg(max));
+ if (cur == max)
+ {
+ // It's already the maximum it can be, no point trying further
+ pfile.close();
+ mfile.close();
+ return false;
+ }
if (size > max || !size)
{
size = max;
Please sign in to comment.
Something went wrong with that request. Please try again.