Ticket #5706: mythzone-uninit.patch

File mythzone-uninit.patch, 1.0 KB (added by Erik Hovland <erik@…>, 12 years ago)

initializes all member vars in ctor of class Player

  • mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp

    mythzoneminder initialization defects
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     .../mythzoneminder/mythzoneminder/zmliveplayer.cpp |    9 ++++++---
     1 files changed, 6 insertions(+), 3 deletions(-)
    
    diff --git a/mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp b/mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp
    index 74b8be2..07a82d6 100644
    a b void ZMLivePlayer::updateMonitorStatus() 
    412412#define TEXTURE_HEIGHT 1024
    413413
    414414Player::Player()
     415    : m_initalized(false), m_cx(0)
     416    , m_dis(0),            m_win(0)
     417    , m_screenNum(0),      m_gc(0)
     418    , m_XImage(0),         m_XvImage(0)
     419    , m_rgba(0),           m_XVport(0)
     420    , m_haveXV(false)
    415421{
    416     m_initalized = false;
    417422    m_useGL = (gContext->GetNumSetting("ZoneMinderUseOpenGL", 1) == 1);
    418     m_XvImage = NULL;
    419     m_XImage = NULL;
    420423
    421424    if (m_useGL)
    422425        VERBOSE(VB_GENERAL, "MythZoneMinder: Using openGL for display");