[mythtv-commits] mythtv branch master updated by jyavenard. v0.27-beta-9-g95c5ee8

Git Repo Owner noreply at mythtv.org
Mon Aug 19 14:42:47 UTC 2013


The branch, master has been updated on the
mythtv repository by gitolite user jyavenard.
       via  95c5ee8e9f2d4eb0e058e6f33085851f25ecc9d0 (commit)
       via  ca2e84d8aed5d96deadae0485adc0cb603653569 (commit)
       via  8524b633b374fc0f32de3e0f3af4c30abbb593d6 (commit)
       via  467c6e72b69a2a72a3e48882a1158695964b03e8 (commit)
       via  29aa7a651b00a4ef7d5b3b4f45809f6d62880574 (commit)
       via  7959ee72fea319fac3bfa1a1b765ac7ede17e123 (commit)
       via  c8311bdf2027ee7aa960d28aad7781f00b0b7307 (commit)
       via  fbf58535aaf82718b3dd9191524edffdba197ce9 (commit)
       via  9cc2c121547eee65b9838b4def9a6d024688da71 (commit)
      from  84074fbf1310559b46ee8c6d8e95f0cc341bf54c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 95c5ee8e9f2d4eb0e058e6f33085851f25ecc9d0
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Mon, 19 Aug 2013 23:05:26 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:20 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=95c5ee8e9f2d4eb0e058e6f33085851f25ecc9d0

Make signal haveResult(metadata) thread-safe.
Fixes potential leaks should there was no listener set. If there was more than one listener at a time it would have crashed
This change the definition syntax for RefCountHandler. For some reasons Qt wants a default constructor to be defined so an object can be defined as a qMetaType.
It's actually much better that way, allows for multiple-listeners and prevent to send pointers across thread/classes which is a bad idea to start with

Ref #11754



commit ca2e84d8aed5d96deadae0485adc0cb603653569
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Mon, 19 Aug 2013 02:04:56 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=ca2e84d8aed5d96deadae0485adc0cb603653569

Code-style fixup. Remove unnecessary class members



commit 8524b633b374fc0f32de3e0f3af4c30abbb593d6
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Mon, 19 Aug 2013 01:56:56 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=8524b633b374fc0f32de3e0f3af4c30abbb593d6

Fixes most memory leaks in libmythmetadata
Allocated memory was rarely freed, when freed many were missed.
Completely revisit memory management:
 - Owner of an object is the list that contains it
 - Use reference counted lists

Some coding style fixup (mostly inconsistencies)

Ref #11754



commit 467c6e72b69a2a72a3e48882a1158695964b03e8
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Mon, 19 Aug 2013 00:10:29 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=467c6e72b69a2a72a3e48882a1158695964b03e8

Have the ThumbnailDLEvent own the ThumbnailData.
Fixes a few leaks that would occurs if any errors were encountered

Ref #11754



commit 29aa7a651b00a4ef7d5b3b4f45809f6d62880574
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Sat, 17 Aug 2013 14:19:12 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=29aa7a651b00a4ef7d5b3b4f45809f6d62880574

Minor style consistency fixup



commit 7959ee72fea319fac3bfa1a1b765ac7ede17e123
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Sat, 17 Aug 2013 00:08:13 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=7959ee72fea319fac3bfa1a1b765ac7ede17e123

Make MetaDatalookup and MetaDatalookupList a reference counted object / list
Ref: #11754



commit c8311bdf2027ee7aa960d28aad7781f00b0b7307
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Fri, 16 Aug 2013 23:53:32 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=c8311bdf2027ee7aa960d28aad7781f00b0b7307

Increase ABI version



commit fbf58535aaf82718b3dd9191524edffdba197ce9
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Fri, 16 Aug 2013 23:49:32 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=fbf58535aaf82718b3dd9191524edffdba197ce9

Add RefCountedList and RefCountHandler type.
ReferenceCounterList is RefCountedList<ReferenceCounter*>: A simple list of reference counted objects.
Object added/removed to the list will see their reference counter adjusted accordingly
RefCountHandler is a convenience utility class which help manage reference counted objects



commit 9cc2c121547eee65b9838b4def9a6d024688da71
Author:    Jean-Yves Avenard <jyavenard at mythtv.org> at Fri, 16 Aug 2013 15:27:13 +1000
Committer: Jean-Yves Avenard <jyavenard at mythtv.org> at Tue, 20 Aug 2013 00:42:19 +1000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=9cc2c121547eee65b9838b4def9a6d024688da71

Allow to do delete on a reference counted object if the reference counter is 1.



-----------------------------------------------------------------------

Summary of changes:
 mythplugins/mythgame/mythgame/gameui.cpp           |   11 +-
 mythplugins/mythgame/mythgame/gameui.h             |    2 +-
 .../mythnetvision/mythnetvision/netsearch.cpp      |    3 -
 .../mythnetvision/mythnetvision/nettree.cpp        |    3 -
 mythtv/libs/libmythbase/libmythbase.pro            |    6 +-
 mythtv/libs/libmythbase/mythversion.h              |    2 +-
 mythtv/libs/libmythbase/referencecounter.cpp       |    4 +-
 mythtv/libs/libmythbase/referencecounterlist.h     |  173 +++++++++++++++++
 mythtv/libs/libmythmetadata/metadatacommon.cpp     |   10 +-
 mythtv/libs/libmythmetadata/metadatacommon.h       |   32 ++--
 mythtv/libs/libmythmetadata/metadatadownload.cpp   |   92 ++++++----
 mythtv/libs/libmythmetadata/metadatadownload.h     |    1 -
 mythtv/libs/libmythmetadata/metadatafactory.cpp    |   15 +-
 mythtv/libs/libmythmetadata/metadatafactory.h      |   34 +++-
 .../libs/libmythmetadata/metadataimagedownload.cpp |   48 +++--
 .../libs/libmythmetadata/metadataimagedownload.h   |   43 ++++-
 mythtv/libs/libmythmetadata/mythuiimageresults.cpp |    2 -
 .../libs/libmythmetadata/mythuimetadataresults.cpp |    7 +-
 .../libs/libmythmetadata/mythuimetadataresults.h   |    4 +-
 mythtv/programs/mythbackend/services/video.cpp     |    4 +-
 mythtv/programs/mythfrontend/editvideometadata.cpp |    4 +-
 mythtv/programs/mythfrontend/scheduleeditor.cpp    |  200 +++++++++-----------
 mythtv/programs/mythfrontend/scheduleeditor.h      |    4 +-
 mythtv/programs/mythfrontend/videodlg.cpp          |   10 +-
 mythtv/programs/mythfrontend/videodlg.h            |    4 +-
 mythtv/programs/mythmetadatalookup/lookup.cpp      |    9 +-
 26 files changed, 472 insertions(+), 255 deletions(-)
 create mode 100644 mythtv/libs/libmythbase/referencecounterlist.h

-- 



More information about the mythtv-commits mailing list