Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jean-Yves Avenard jyavenard authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 mythtv/libs/libmyth/audiooutputalsa.cpp
7 mythtv/libs/libmyth/audiooutputalsa.cpp
@@ -246,6 +246,13 @@ bool AudioOutputALSA::IncPreallocBufferSize(int requested, int buffer_time)
246 246 VBAUDIO(QString("Hardware audio buffer cur: %1 need: %2 max allowed: %3")
247 247 .arg(cur).arg(size).arg(max));
248 248
  249 + if (cur == max)
  250 + {
  251 + // It's already the maximum it can be, no point trying further
  252 + pfile.close();
  253 + mfile.close();
  254 + return false;
  255 + }
249 256 if (size > max || !size)
250 257 {
251 258 size = max;

0 comments on commit 9d533f3

Please sign in to comment.
Something went wrong with that request. Please try again.