[mythtv-commits] mythtv commit: r27034 - in branches/release-0-24-fixes/mythtv/libs by markk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Oct 29 03:09:14 UTC 2010


      Author: markk
        Date: 2010-10-29 03:09:14 +0000 (Fri, 29 Oct 2010)
New Revision: 27034
   Changeset: http://svn.mythtv.org/trac/changeset/27034

Log:

Backport r27015 from trunk to release-0-24-fixes.

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:

   branches/release-0-24-fixes/mythtv/libs/libmythtv/mythplayer.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythtv/osd.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythtv/osd.h
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythimage.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythimage.h
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythscreenstack.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythscreenstack.h
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythscreentype.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythscreentype.h
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuiguidegrid.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuihelper.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuihelper.h
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuiimage.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuishape.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuitext.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuitype.cpp
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuitype.h
   branches/release-0-24-fixes/mythtv/libs/libmythui/mythuiwebbrowser.cpp




More information about the mythtv-commits mailing list