[mythtv] Couldn't save cache image: blank.png

Chris Pinkham cpinkham at bc2va.org
Mon Nov 24 13:51:24 EST 2003


> Well, it looks like when the blank.png image gets scaled, a null image 
> results (not to be confused with a NULL pointer... a null image is a 

If someone can come up with a better way to do the following portion of
code then we wouldn't need the blank.png file.

            itype = (UIImageType *)container->GetType("commflagged");
            if (itype)
            {
                QMap<long long, int> commbreaks;
                curitem->GetCommBreakList(commbreaks, m_db);
                if (commbreaks.size())
                    itype->ResetFilename();
                else
                    itype->SetImage("blank.png");
                itype->LoadImage();
            }

This section of code is repeated for each of the status icons that appear
on the playbackbox screen.  When I added the status icons, I had to load a
blank image if I wanted to clear the previous image.  I might not fully
understand how the theme code and UIImageType work so maybe there's a better
way.  I thought (and still think) of the blank.png as a kludge.  From what
I remember, unless I loaded the blank image into the UIImageType, the
previous image would still be displayed forever.

I'll try to take another look at this sometime this week unless someone else
does.
-- 

Chris



More information about the mythtv-dev mailing list