Permalink
Browse files

Fix display of notification with no expiry time during video playback.

This fixes AirPlay photo streaming while watching a video...
  • Loading branch information...
jyavenard committed Jul 5, 2013
1 parent 33de562 commit 13021c6aa82732cfe92950c7768abd94c7bfc3ed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/osd.cpp
@@ -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())
@@ -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);
}
}

0 comments on commit 13021c6

Please sign in to comment.