Skip to content

Commit

Permalink
MythZoneMinder: add some initial support for ZoneMinder >= 1.26.0
Browse files Browse the repository at this point in the history
Thanks to Warpme for testing the patch.

Note: this bumps the MythZoneMinder protocol version so both the FE plugin
and mythzmserver need to be updated.
  • Loading branch information
Paul Harrison committed Oct 27, 2013
1 parent 46eb6b4 commit 39401bf
Show file tree
Hide file tree
Showing 6 changed files with 341 additions and 194 deletions.
5 changes: 2 additions & 3 deletions mythplugins/mythzoneminder/mythzmserver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ int main(int argc, char **argv)
loadZMConfig(zmconfig);

// we support version 1.24.0 or later
int major, minor, revision;
sscanf(g_zmversion.c_str(), "%d.%d.%d", &major, &minor, &revision);
if (major >= 1 && minor >= 24 && revision >= 0)
sscanf(g_zmversion.c_str(), "%d.%d.%d", &g_majorVersion, &g_minorVersion, &g_revisionVersion);
if (checkVersion(1, 24, 0))
{
cout << "ZM is version '" << g_zmversion << "'" << endl;
}
Expand Down
Loading

0 comments on commit 39401bf

Please sign in to comment.