Skip to content

Commit

Permalink
Merge branch 'master' of github.com:MythTV/mythtv
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Mar 16, 2011
2 parents dd6e0ef + 02cfbb1 commit 9dc3c53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions mythtv/libs/libmythfreemheg/Engine.cpp
Expand Up @@ -708,8 +708,13 @@ void MHEngine::CheckContentRequests()
if (m_Context->CheckCarouselObject(pContent->m_FileName) &&
m_Context->GetCarouselData(pContent->m_FileName, text))
{
pContent->m_pRequester->ContentArrived((const unsigned char *)text.data(),
text.size(), this);
// If the content is not recognized catch the exception and continue
try {
pContent->m_pRequester->ContentArrived((const unsigned char *)text.data(),
text.size(), this);
}
catch (char const *) {
}
// Remove from the list.
delete pContent;
it = m_ExternContentTable.erase(it);
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythui/mythpainter.cpp
Expand Up @@ -283,7 +283,7 @@ MythImage *MythPainter::GetImageFromString(const QString &msg,
MythImage *im = GetFormatImage();
if (im)
{
m_SoftwareCacheSize += im->byteCount();
m_SoftwareCacheSize += im->bytesPerLine() * im->height();
DrawTextPriv(im, msg, flags, r, font);
m_StringToImageMap[incoming] = im;
m_StringExpireList.push_back(incoming);
Expand Down Expand Up @@ -343,7 +343,7 @@ MythImage* MythPainter::GetImageFromRect(const QRect &area, int radius,
MythImage *im = GetFormatImage();
if (im)
{
m_SoftwareCacheSize += im->byteCount();
m_SoftwareCacheSize += (im->bytesPerLine() * im->height());
DrawRectPriv(im, area, radius, ellipse, fillBrush, linePen);
m_StringToImageMap[incoming] = im;
m_StringExpireList.push_back(incoming);
Expand Down Expand Up @@ -400,7 +400,7 @@ void MythPainter::ExpireImages(int max)

if (oldim)
{
m_SoftwareCacheSize -= oldim->byteCount();
m_SoftwareCacheSize -= oldim->bytesPerLine() * oldim->height();
oldim->DownRef();
}
}
Expand Down

0 comments on commit 9dc3c53

Please sign in to comment.