[mythtv-commits] mythtv branch devel/lvr/backcompat created by lvr. v0.28-pre-3342-g97255e7

Git Repo Owner noreply at mythtv.org
Tue Jan 5 18:12:21 UTC 2016


The branch, devel/lvr/backcompat has been created on the
mythtv repository by gitolite user lvr.
        at  97255e7d1ecef542c661fc06a9026e63ecd282af (commit)

- Log -----------------------------------------------------------------
commit 97255e7d1ecef542c661fc06a9026e63ecd282af
Author:    Lawrence Rust <lvr at softsystem.co.uk> at Sat, 2 Jan 2016 19:14:32 +0000
Committer: Lawrence Rust <lvr at softsystem.co.uk> at Tue, 5 Jan 2016 17:44:30 +0000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=97255e7d1ecef542c661fc06a9026e63ecd282af

Provide basic Myth protocol backwards compatibility
This patch enables a frontend to fallback to an older communications
protocol version.  When used in conjunction with the patch to allow
older databases to be used in read-only mode, the combination permits
a frontend to provide basic functionality with an older backend:

- Full UI operation.
- Watch a recording
- Watch liveTV
- Watch a video
- Listen to radio stream
- Listen to music

Operation with older backends also extensively tests error handling
in the new FE and is therefore recommended during development.

These changes deliberately shield the database & BE from unexpected
operations that could result in failure.  Compatibility includes:

1. MythCoreContext::ConnectCommandSocket will fallback to
   protocol version 77 (0.27) if the default MYTH_PROTO_VERSION
   is rejected.
2. MythCoreContext::SetupCommandSocket translates newer ANN
   strings.
3. RemoteFile::FindFileList falls back to QUERY_SG_FILEQUERY if
   QUERY_FINDFILE is not available.
4. The ProgramInfo and InputInfo structures have version dependent
   de/serialisers.
5. RemoteRequestFreeInputInfo falls back to older protocol methods
   if required.

Signed-off-by: Lawrence Rust <lvr at softsystem.co.uk>



commit f797835150d41ef572755f230c6dbb4411c164c0
Author:    Lawrence Rust <lvr at softsystem.co.uk> at Sun, 3 Jan 2016 16:06:16 +0000
Committer: Lawrence Rust <lvr at softsystem.co.uk> at Tue, 5 Jan 2016 12:26:45 +0000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=f797835150d41ef572755f230c6dbb4411c164c0

DB: Allow read-only database use if schema upgrade not allowed
This patch enables an updated frontend to work with an older
backend and database.

Signed-off-by: Lawrence Rust <lvr at softsystem.co.uk>



commit 4a9a9fa949b4884550ddc7a8edc42342324ccbc4
Author:    Lawrence Rust <lvr at softsystem.co.uk> at Wed, 5 Jun 2013 19:11:21 +0100
Committer: Lawrence Rust <lvr at softsystem.co.uk> at Mon, 4 Jan 2016 13:47:16 +0000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=4a9a9fa949b4884550ddc7a8edc42342324ccbc4

SimpleDBStorage: Where possible use Get/SetSetting to speed frontend startup
Load() and Store() make single un-cached dbase calls which can be slow
on remote frontends.  Get/SetSetting are cached so use them when the
table name is 'settings'.

Signed-off-by: Lawrence Rust <lvr at softsystem.co.uk>



commit fbb275efe2f9dfe775e709814880013809b472af
Author:    Lawrence Rust <lvr at softsystem.co.uk> at Thu, 8 Aug 2013 17:09:16 +0100
Committer: Lawrence Rust <lvr at softsystem.co.uk> at Mon, 4 Jan 2016 13:47:16 +0000
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=fbb275efe2f9dfe775e709814880013809b472af

settings: Initialise IntegerSetting to 0 in ctor
By default a setting is initialised to a null string which, if the user
does nothing else, results in an empty string written to the database.
This can cause some routines that test for a numeric value to fail e.g.
MythArchive's DVD creator fails if MythArchiveDriveSpeed is an empty string:

    Traceback (most recent call last):
      File "/home/lvr/Projects/myth/mythinstall/share/mythtv/mytharchive/scripts/mythburn.py", line 5247, in <module>
        main()
      File "/home/lvr/Projects/myth/mythinstall/share/mythtv/mytharchive/scripts/mythburn.py", line 5143, in main
        drivespeed = int(defaultsettings.get("MythArchiveDriveSpeed", "0"))
      ValueError: invalid literal for int() with base 10: ''

Signed-off-by: Lawrence Rust <lvr at softsystem.co.uk>



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

-- 



More information about the mythtv-commits mailing list