Skip to content

Commit

Permalink
Fix display of notification with no expiry time during video playback.
Browse files Browse the repository at this point in the history
This fixes AirPlay photo streaming while watching a video...
  • Loading branch information
jyavenard committed Jul 5, 2013
1 parent 33de562 commit 13021c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/osd.cpp
Expand Up @@ -667,7 +667,7 @@ bool OSD::DrawDirect(MythPainter* painter, QSize size, bool repaint)
{
QTime expires = nc->ScreenExpiryTime(*it2).time();
int left = now.msecsTo(expires);
if (left < m_FadeTime)
if (expires.isValid() && left < m_FadeTime)
(*it2)->SetAlpha((255 * left) / m_FadeTime);
}
if ((*it2)->NeedsRedraw())
Expand Down Expand Up @@ -790,7 +790,7 @@ QRegion OSD::Draw(MythPainter* painter, QPaintDevice *device, QSize size,
{
QTime expires = nc->ScreenExpiryTime(*it2).time();
int left = now.msecsTo(expires);
if (left < m_FadeTime)
if (expires.isValid() && left < m_FadeTime)
(*it2)->SetAlpha((255 * left) / m_FadeTime);
}
}
Expand Down

0 comments on commit 13021c6

Please sign in to comment.