Skip to content

Commit

Permalink
Start MythTimer's QElapsedTimer on construction.
Browse files Browse the repository at this point in the history
This is a temporary workaround that breaks MythTimer's unit tests,
but it allows users to view in progress recordings which apperently
depended on elapsed() returning a non-zero value even if the timer
had not been started yet.
  • Loading branch information
daniel-kristjansson committed Jan 25, 2013
1 parent ae84064 commit 9402858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythtimer.h
Expand Up @@ -12,7 +12,7 @@
class MBASE_PUBLIC MythTimer class MBASE_PUBLIC MythTimer
{ {
public: public:
MythTimer() : m_offset(0) { m_timer.invalidate(); } MythTimer() : m_offset(0) { m_timer.start(); }


void start(void); void start(void);
int restart(void); int restart(void);
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythversion.h
Expand Up @@ -12,7 +12,7 @@
/// Update this whenever the plug-in API changes. /// Update this whenever the plug-in API changes.
/// Including changes in the libmythbase, libmyth, libmythtv, libmythav* and /// Including changes in the libmythbase, libmyth, libmythtv, libmythav* and
/// libmythui class methods used by plug-ins. /// libmythui class methods used by plug-ins.
#define MYTH_BINARY_VERSION "0.27.20130103-1" #define MYTH_BINARY_VERSION "0.27.20130124-1"


/** \brief Increment this whenever the MythTV network protocol changes. /** \brief Increment this whenever the MythTV network protocol changes.
* *
Expand Down

0 comments on commit 9402858

Please sign in to comment.