Skip to content

Commit

Permalink
Debug OSD: Buffer fill is not available for DVD or blu ray playback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Nov 22, 2011
1 parent a9dc7ec commit 77a7d73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/ringbuffer.cpp
Expand Up @@ -1364,6 +1364,9 @@ QString RingBuffer::GetStorageRate(void)

QString RingBuffer::GetAvailableBuffer(void)
{
if (type == kRingBuffer_DVD || type == kRingBuffer_BD)
return "N/A";

int avail = (rbwpos >= rbrpos) ? rbwpos - rbrpos : bufferSize - rbrpos + rbwpos;
return QString("%1%").arg((int)(((float)avail / (float)bufferSize) * 100.0));
}
Expand Down

0 comments on commit 77a7d73

Please sign in to comment.