[mythtv-commits] mythtv commit: r27015 - in trunk/mythtv/libs by markk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Thu Oct 28 09:38:25 UTC 2010


      Author: markk
        Date: 2010-10-28 09:38:25 +0000 (Thu, 28 Oct 2010)
New Revision: 27015
   Changeset: http://svn.mythtv.org/trac/changeset/27015

Log:

Fix ownership/allocation of MythImages.

There are a number of instances within the UI code where new images are
allocated by asking MythMainWindow for its painter. When this code is
used within the OSD, images are then allocated using the incorrect
painter and we rapidly lose track of who owns what.

We now keep a record of the current painter within the UI object tree
itself and search the object tree for the correct painter to use each
time we need a new image. For the main UI, this will still ultimately
return the main UI painter within the screenstack objects and for the
OSD, the painter is set and updated at the ScreenType (OSD window)
level.

There is still an intermittent crash on mythfrontend exit, related to
the use of an invalid parent within MythImage, that needs tracking down.


Modified:

   trunk/mythtv/libs/libmythtv/mythplayer.cpp
   trunk/mythtv/libs/libmythtv/osd.cpp
   trunk/mythtv/libs/libmythtv/osd.h
   trunk/mythtv/libs/libmythui/mythimage.cpp
   trunk/mythtv/libs/libmythui/mythimage.h
   trunk/mythtv/libs/libmythui/mythscreenstack.cpp
   trunk/mythtv/libs/libmythui/mythscreenstack.h
   trunk/mythtv/libs/libmythui/mythscreentype.cpp
   trunk/mythtv/libs/libmythui/mythscreentype.h
   trunk/mythtv/libs/libmythui/mythuiguidegrid.cpp
   trunk/mythtv/libs/libmythui/mythuihelper.cpp
   trunk/mythtv/libs/libmythui/mythuihelper.h
   trunk/mythtv/libs/libmythui/mythuiimage.cpp
   trunk/mythtv/libs/libmythui/mythuishape.cpp
   trunk/mythtv/libs/libmythui/mythuitext.cpp
   trunk/mythtv/libs/libmythui/mythuitype.cpp
   trunk/mythtv/libs/libmythui/mythuitype.h
   trunk/mythtv/libs/libmythui/mythuiwebbrowser.cpp




More information about the mythtv-commits mailing list