Ticket #5682: libs_libmythtv-uninit.patch

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

inits member vars in ctors

  • mythtv/libs/libmythtv/avformatdecoder.cpp

    Fixes any initialization defects in libmythtv
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythtv/libs/libmythtv/avformatdecoder.cpp   |    5 -
     mythtv/libs/libmythtv/dvbcam.cpp            |    9 +
     mythtv/libs/libmythtv/dvbrecorder.cpp       |   11 +
     mythtv/libs/libmythtv/dvbrecorder.h         |    2 
     mythtv/libs/libmythtv/dvbstreamhandler.cpp  |    1 
     mythtv/libs/libmythtv/hdhrchannel.cpp       |    3 
     mythtv/libs/libmythtv/importicons.cpp       |   11 +
     mythtv/libs/libmythtv/iptvsignalmonitor.cpp |    8 +
     mythtv/libs/libmythtv/ivtvdecoder.cpp       |    4 -
     mythtv/libs/libmythtv/mpeg/h264utils.cpp    |    4 +
     mythtv/libs/libmythtv/mpegrecorder.cpp      |   41 +++--
     mythtv/libs/libmythtv/mpegrecorder.h        |    2 
     mythtv/libs/libmythtv/osd.cpp               |   14 ++
     mythtv/libs/libmythtv/osdimagecache.cpp     |    2 
     mythtv/libs/libmythtv/osdtypes.cpp          |  208 ++++++++-------------------
     mythtv/libs/libmythtv/osdtypes.h            |    4 -
     mythtv/libs/libmythtv/osdtypeteletext.cpp   |   23 +++
     mythtv/libs/libmythtv/osdtypeteletext.h     |    3 
     mythtv/libs/libmythtv/progfind.cpp          |   22 ++-
     mythtv/libs/libmythtv/transporteditor.h     |    2 
     mythtv/libs/libmythtv/tv_rec.cpp            |   17 +-
     mythtv/libs/libmythtv/videoout_xv.cpp       |   50 +++---
     mythtv/libs/libmythtv/xbox.cpp              |    6 +
     23 files changed, 212 insertions(+), 240 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index 9b6a48d..514a90c 100644
    a b AvFormatDecoder::AvFormatDecoder(NuppelVideoPlayer *parent, 
    414414      // DVD
    415415      lastdvdtitle(-1),
    416416      decodeStillFrame(false),
    417       dvd_xvmc_enabled(false), dvd_video_codec_changed(false),
    418       dvdTitleChanged(false), mpeg_seq_end_seen(false)
     417      dvd_xvmc_enabled(false),      dvd_video_codec_changed(false),
     418      dvdTitleChanged(false),       mpeg_seq_end_seen(false)
    419419{
    420420    bzero(&params, sizeof(AVFormatParameters));
     421    bzero(&readcontext, sizeof(readcontext));
    421422    bzero(audioSamples, AVCODEC_MAX_AUDIO_FRAME_SIZE * sizeof(short int));
    422423    ccd608->SetIgnoreTimecode(true);
    423424
  • mythtv/libs/libmythtv/dvbcam.cpp

    diff --git a/mythtv/libs/libmythtv/dvbcam.cpp b/mythtv/libs/libmythtv/dvbcam.cpp
    index eb896e1..65f5b12 100644
    a b using namespace std; 
    6262#define LOC QString("DVB#%1 CA: ").arg(device)
    6363
    6464DVBCam::DVBCam(const QString &aDevice)
    65     : device(aDevice),        numslots(0),
     65    : device(aDevice),     numslots(0),
    6666      ciHandler(NULL),
    67       exitCiThread(false),    ciThreadRunning(false),
    68       have_pmt(false),        pmt_sent(false),
    69       pmt_updated(false),     pmt_added(false)
     67      exitCiThread(false), ciThreadRunning(false),
     68      ciHandlerThread(pthread_t()),
     69      have_pmt(false),     pmt_sent(false),
     70      pmt_updated(false),  pmt_added(false)
    7071{
    7172    QString dvbdev = CardUtil::GetDeviceName(DVB_DEV_CA, device);
    7273    QByteArray dev = dvbdev.toAscii();
  • mythtv/libs/libmythtv/dvbrecorder.cpp

    diff --git a/mythtv/libs/libmythtv/dvbrecorder.cpp b/mythtv/libs/libmythtv/dvbrecorder.cpp
    index 30db2c0..1c5cbac 100644
    a b DVBRecorder::DVBRecorder(TVRec *rec, DVBChannel* advbchannel) 
    103103      _input_pmt(NULL),
    104104      _has_no_av(false),
    105105      // Statistics
    106       _continuity_error_count(0), _stream_overflow_count(0)
     106      _continuity_error_count(0), _stream_overflow_count(0),
     107      _bad_packet_count(0)
    107108{
    108109    videodevice = QString::null;
    109110
    DVBRecorder::DVBRecorder(TVRec *rec, DVBChannel* advbchannel) 
    111112
    112113    _buffer = new unsigned char[_buffer_size];
    113114    bzero(_buffer, _buffer_size);
    114 }
    115 
    116 DVBRecorder::~DVBRecorder()
    117 {
    118     TeardownAll();
     115    bzero(_stream_id, sizeof(_stream_id));
     116    bzero(_pid_status, sizeof(_pid_status));
     117    bzero(_continuity_counter, sizeof(_continuity_counter));
    119118}
    120119
    121120void DVBRecorder::TeardownAll(void)
  • mythtv/libs/libmythtv/dvbrecorder.h

    diff --git a/mythtv/libs/libmythtv/dvbrecorder.h b/mythtv/libs/libmythtv/dvbrecorder.h
    index 9eef689..4b81678 100644
    a b class DVBRecorder : 
    4747{
    4848  public:
    4949    DVBRecorder(TVRec *rec, DVBChannel* dvbchannel);
    50    ~DVBRecorder();
     50   ~DVBRecorder() { TeardownAll(); }
    5151
    5252    void SetOptionsFromProfile(RecordingProfile *profile,
    5353                               const QString &videodev,
  • mythtv/libs/libmythtv/dvbstreamhandler.cpp

    diff --git a/mythtv/libs/libmythtv/dvbstreamhandler.cpp b/mythtv/libs/libmythtv/dvbstreamhandler.cpp
    index 91ad283..b89979f 100644
    a b DVBStreamHandler::DVBStreamHandler(const QString &dvb_device) : 
    8989
    9090    _start_stop_lock(true),
    9191    _running(false),
     92    _reader_thread(pthread_t()),
    9293    _using_section_reader(false),
    9394
    9495    _device_read_buffer(NULL),
  • mythtv/libs/libmythtv/hdhrchannel.cpp

    diff --git a/mythtv/libs/libmythtv/hdhrchannel.cpp b/mythtv/libs/libmythtv/hdhrchannel.cpp
    index e911536..78081db 100644
    a b using namespace std; 
    3737HDHRChannel::HDHRChannel(TVRec *parent, const QString &device, uint tuner)
    3838    : DTVChannel(parent),       _control_socket(NULL),
    3939      _device_id(0),            _device_ip(0),
    40       _tuner(tuner),            _lock(true)
     40      _tuner(tuner),            _ignore_filters(false),
     41      _lock(true)
    4142{
    4243    bool valid;
    4344    _device_id = device.toUInt(&valid, 16);
  • mythtv/libs/libmythtv/importicons.cpp

    diff --git a/mythtv/libs/libmythtv/importicons.cpp b/mythtv/libs/libmythtv/importicons.cpp
    index 92900e7..bec6537 100644
    a b  
    1414#include <qdir.h>
    1515
    1616ImportIconsWizard::ImportIconsWizard(bool fRefresh, QString channelname)
     17    : m_strMatches(""),              m_strChannelDir(""),
     18      m_strChannelname(channelname), m_fRefresh(fRefresh),
     19      m_nMaxCount(0),                m_nCount(0),
     20      m_missingMaxCount(0),          m_missingCount(0),
     21      m_closeDialog(false)
    1722{
    18     m_fRefresh = fRefresh;
    19     m_strChannelname = channelname;
    20     m_closeDialog = false;
    21     m_missingCount=0;
    22     m_missingMaxCount=0;
    23 
    2423}
    2524
    2625MythDialog *ImportIconsWizard::dialogWidget(MythMainWindow *parent,
  • mythtv/libs/libmythtv/iptvsignalmonitor.cpp

    diff --git a/mythtv/libs/libmythtv/iptvsignalmonitor.cpp b/mythtv/libs/libmythtv/iptvsignalmonitor.cpp
    index a25296d..634fb9c 100644
    a b  
    2929 *  \param _channel IPTVChannel for card
    3030 *  \param _flags   Flags to start with
    3131 */
    32 IPTVSignalMonitor::IPTVSignalMonitor(
    33     int db_cardnum, IPTVChannel *_channel, uint64_t _flags) :
    34     DTVSignalMonitor(db_cardnum, _channel, _flags), dtvMonitorRunning(false)
     32IPTVSignalMonitor::IPTVSignalMonitor(int db_cardnum,
     33                                     IPTVChannel *_channel,
     34                                     uint64_t _flags)
     35    : DTVSignalMonitor(db_cardnum, _channel, _flags),
     36      dtvMonitorRunning(false), table_monitor_thread(pthread_t())
    3537{
    3638    bool isLocked = false;
    3739    IPTVChannelInfo chaninfo = GetChannel()->GetCurrentChanInfo();
  • mythtv/libs/libmythtv/ivtvdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/ivtvdecoder.cpp b/mythtv/libs/libmythtv/ivtvdecoder.cpp
    index 407371b..77707e8 100644
    a b IvtvDecoder::IvtvDecoder(NuppelVideoPlayer *parent, ProgramInfo *pginfo) 
    4545      frame_decoded(0),       videoPlayed(0),
    4646      lastStartFrame(0),      laststartpos(0),
    4747
    48       nexttoqueue(1),         lastdequeued(0)
     48      nexttoqueue(1),         lastdequeued(0),
     49
     50      needReset(false)
    4951{
    5052    lastResetTime.start();
    5153    fps = 29.97f;
  • mythtv/libs/libmythtv/mpeg/h264utils.cpp

    diff --git a/mythtv/libs/libmythtv/mpeg/h264utils.cpp b/mythtv/libs/libmythtv/mpeg/h264utils.cpp
    index 72e0bb7..65ba5d9 100644
    a b void KeyframeSequencer::Reset(void) /* throw() */ 
    7070    saw_sps = false;
    7171    separate_colour_plane_flag = false;
    7272    frame_mbs_only_flag = true;
     73    prev_field_pic_flag = false;
     74    prev_bottom_field_flag = false;
     75    prev_pic_parameter_set_id = 0;
    7376    new_VLC_NAL = false;
    7477
    7578    did_evaluate_once = false;
    7679    keyframe = false;
    7780    keyframe_sync_stream_offset = 0;
     81    memset(&gb, 0, sizeof(gb));
    7882}
    7983
    8084void KeyframeSequencer::KeyframePredicate(
  • mythtv/libs/libmythtv/mpegrecorder.cpp

    diff --git a/mythtv/libs/libmythtv/mpegrecorder.cpp b/mythtv/libs/libmythtv/mpegrecorder.cpp
    index 3b95836..4580c6f 100644
    a b const char* MpegRecorder::aspectRatio[] = 
    7878MpegRecorder::MpegRecorder(TVRec *rec) :
    7979    DTVRecorder(rec),
    8080    // Debugging variables
    81     deviceIsMpegFile(false),
     81    deviceIsMpegFile(false),      bufferSize(0),
    8282    // Driver info
    83     card(QString::null),      driver(QString::null),
    84     version(0),               usingv4l2(false),
    85     has_buggy_vbi(true),      has_v4l2_vbi(false),
     83    card(QString::null),          driver(QString::null),
     84    version(0),                   usingv4l2(false),
     85    has_buggy_vbi(true),          has_v4l2_vbi(false),
    8686    requires_special_pause(false),
    8787    // State
    88     recording(false),         encoding(false),
    89     needs_resolution(false),  start_stop_encoding_lock(QMutex::Recursive),
    90     recording_wait_lock(),    recording_wait(),
     88    recording(false),             encoding(false),
     89    needs_resolution(false),      start_stop_encoding_lock(QMutex::Recursive),
     90    recording_wait_lock(),        recording_wait(),
    9191    // Pausing state
    9292    cleartimeonpause(false),
    9393    // Encoding info
    94     width(720),               height(480),
    95     bitrate(4500),            maxbitrate(6000),
    96     streamtype(0),            aspectratio(2),
    97     audtype(2),               audsamplerate(48000),
    98     audbitratel1(14),         audbitratel2(14),
     94    width(720),                   height(480),
     95    bitrate(4500),                maxbitrate(6000),
     96    streamtype(0),                aspectratio(2),
     97    audtype(2),                   audsamplerate(48000),
     98    audbitratel1(14),             audbitratel2(14),
    9999    audbitratel3(10),
    100     audvolume(80),            language(0),
     100    audvolume(80),                language(0),
    101101    low_mpeg4avgbitrate(4500),    low_mpeg4peakbitrate(6000),
    102102    medium_mpeg4avgbitrate(9000), medium_mpeg4peakbitrate(13500),
    103103    high_mpeg4avgbitrate(13500),  high_mpeg4peakbitrate(20200),
    104104    // Input file descriptors
    105     chanfd(-1),               readfd(-1),
     105    chanfd(-1),                   readfd(-1),
    106106    _device_read_buffer(NULL),
    107107    // TS packet handling
    108     _stream_data(NULL)
     108    _stream_data(NULL),
     109    // Statistics
     110    _continuity_error_count(0),   _stream_overflow_count(0),
     111    _bad_packet_count(0)
    109112{
    110 }
    111 
    112 MpegRecorder::~MpegRecorder()
    113 {
    114     TeardownAll();
     113    bzero(_stream_id, sizeof(_stream_id));
     114    bzero(_pid_status, sizeof(_pid_status));
     115    bzero(_continuity_counter, sizeof(_continuity_counter));
    115116}
    116117
    117118void MpegRecorder::TeardownAll(void)
  • mythtv/libs/libmythtv/mpegrecorder.h

    diff --git a/mythtv/libs/libmythtv/mpegrecorder.h b/mythtv/libs/libmythtv/mpegrecorder.h
    index a961598..91b5022 100644
    a b class MpegRecorder : public DTVRecorder, 
    1919{
    2020  public:
    2121    MpegRecorder(TVRec*);
    22    ~MpegRecorder();
     22   ~MpegRecorder() { TeardownAll(); }
    2323    void TeardownAll(void);
    2424
    2525    void SetOption(const QString &opt, int value);
  • mythtv/libs/libmythtv/osd.cpp

    diff --git a/mythtv/libs/libmythtv/osd.cpp b/mythtv/libs/libmythtv/osd.cpp
    index 497390e..af5897f 100644
    a b static void initialize_osd_fonts(void); 
    4646
    4747OSD::OSD()
    4848    : QObject(),
     49      osdBounds(), frameint(0),
    4950      needPillarBox(false),
    5051      themepath(FindTheme(gContext->GetSetting("OSDTheme"))),
    51       wscale(1.0f),
     52      wscale(1.0f),                       fscale(1.0f),
    5253      m_themeinfo(new ThemeInfo(themepath)),
     54      hmult(1.0f),                        wmult(1.0f),
     55      xoffset(0),                         yoffset(0),
     56      displaywidth(0),                    displayheight(0),
    5357      m_setsvisible(false),
    5458      totalfadetime(0),                   timeType(0),
    5559      timeFormat(""),                     setList(new vector<OSDSet*>),
    5660      editarrowleft(NULL),                editarrowright(NULL),
     61      editarrowRect(),                    drawSurface(NULL),
    5762      changed(false),                     runningTreeMenu(NULL),
    5863      treeMenuContainer(""),
     64      // EIA-708 captions
     65      fontname(""),                       ccfontname(""),
     66      fontSizeType(""),
     67      // Test file subtitles
    5968      removeHTML(QRegExp("</?.+>"))
    6069{
    6170    VERBOSE(VB_GENERAL, QString("OSD Theme Dimensions W: %1 H: %2").arg(m_themeinfo->BaseRes()->width()).arg(m_themeinfo->BaseRes()->height()));
    6271
     72    for (int i = 0; i < 16; i++)
     73        cc708fontnames[i] = QString("");
     74
    6375    m_themeaspect = (float)m_themeinfo->BaseRes()->width() / (float)m_themeinfo->BaseRes()->height();
    6476}
    6577
  • mythtv/libs/libmythtv/osdimagecache.cpp

    diff --git a/mythtv/libs/libmythtv/osdimagecache.cpp b/mythtv/libs/libmythtv/osdimagecache.cpp
    index d60e294..6f82f0f 100644
    a b OSDImageCacheValue::OSDImageCacheValue( 
    4040    m_yuv(yuv),         m_ybuffer(ybuffer),
    4141    m_ubuffer(ubuffer), m_vbuffer(vbuffer),
    4242    m_alpha(alpha),     m_imagesize(imagesize),
    43     m_cacheKey(cacheKey)
     43    m_time(0),          m_cacheKey(cacheKey)
    4444{
    4545    uint yuv_size = m_imagesize.width() * m_imagesize.height() * 3 / 2;
    4646    m_size_in_bytes =
  • mythtv/libs/libmythtv/osdtypes.cpp

    diff --git a/mythtv/libs/libmythtv/osdtypes.cpp b/mythtv/libs/libmythtv/osdtypes.cpp
    index a3d4159..d88356b 100644
    a b bool OSDSet::CanShowWith(const QString &name) const 
    655655
    656656//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    657657
    658 OSDType::OSDType(const QString &name) :
    659     m_lock(true),
    660     m_hidden(false),
    661     m_name(name),
    662     m_parent(NULL)
     658OSDType::OSDType(const QString &name)
     659    : m_lock(true), m_hidden(false),
     660      m_name(name), m_parent(NULL)
    663661{
    664662}
    665663
    QString OSDType::Name(void) 
    669667    return m_name;
    670668}
    671669
    672 OSDType::~OSDType()
    673 {
    674 }
    675 
    676670//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    677671
    678672OSDTypeText::OSDTypeText(const QString &name, TTFFont *font,
    679673                         const QString &text, QRect displayrect,
    680                          float wmult, float hmult) :
    681     OSDType(name),
    682     m_displaysize(displayrect),
    683     m_screensize(displayrect),
    684     m_unbiasedsize(unbias(m_screensize, wmult, hmult)),
    685     m_message(text),
    686     m_default_msg(text),
    687 
    688     m_font(font),
    689     m_altfont(NULL),
    690 
    691     m_centered(false),
    692     m_right(false),
    693 
    694     m_multiline(false),
    695     m_usingalt(false),
    696 
    697     m_selected(false),
    698     m_button(false),
    699     m_entrynum(-1),
    700     m_cursorpos(0),
    701 
    702     m_scroller(false),
    703     m_scrollx(0),
    704     m_scrolly(0),
    705 
    706     m_scrollinit(false),
    707 
    708     m_linespacing(1.5f),
    709 
    710     m_draw_info_str(""),
    711     m_draw_info_len(0),
    712 
    713     codeci(NULL)
    714 {
    715 }
    716 
    717 OSDTypeText::OSDTypeText(const OSDTypeText &other) :
    718     OSDType(other.m_name),
    719 
    720     m_displaysize(QRect(0,0,0,0)),
    721     m_screensize(QRect(0,0,0,0)),
    722     m_unbiasedsize(QRect(0,0,0,0)),
    723     m_message(QString::null),
    724     m_default_msg(QString::null),
    725 
    726     m_font(NULL),
    727     m_altfont(NULL),
    728 
    729     m_centered(false),
    730     m_right(false),
    731 
    732     m_multiline(false),
    733     m_usingalt(false),
    734 
    735     m_selected(false),
    736     m_button(false),
    737     m_entrynum(-1),
    738     m_cursorpos(0),
    739 
    740     m_scroller(false),
    741     m_scrollx(0),
    742     m_scrolly(0),
    743 
    744     m_scrollinit(false),
    745 
    746     m_linespacing(1.5f),
    747 
    748     m_draw_info_str(""),
    749     m_draw_info_len(0),
    750 
    751     codeci(NULL)
     674                         float wmult, float hmult)
     675    : OSDType(name),
     676      m_displaysize(displayrect), m_screensize(displayrect),
     677      m_unbiasedsize(unbias(m_screensize, wmult, hmult)),
     678      m_message(text),            m_default_msg(text),
     679      m_font(font),               m_altfont(NULL),
     680      m_centered(false),          m_right(false),
     681      m_multiline(false),         m_usingalt(false),
     682      m_selected(false),          m_button(false),
     683      m_entrynum(-1),             m_cursorpos(0),
     684      m_scroller(false),
     685      m_scrollx(0),               m_scrolly(0),
     686      m_scrollstartx(0),          m_scrollendx(0),
     687      m_scrollposx(0),
     688      m_scrollstarty(0),          m_scrollendy(0),
     689      m_scrollposy(0),
     690      m_scrollinit(false),
     691      m_linespacing(1.5f),        m_draw_info_str(""),
     692      m_draw_info_len(0),         codeci(NULL)
     693{
     694}
     695
     696OSDTypeText::OSDTypeText(const OSDTypeText &other)
     697    : OSDType(other.m_name),
     698      m_displaysize(other.m_displaysize),   m_screensize(other.m_screensize),
     699      m_unbiasedsize(other.m_unbiasedsize), m_message(other.m_message),
     700      m_default_msg(other.m_default_msg),   m_font(other.m_font),
     701      m_altfont(other.m_altfont),           m_centered(other.m_centered),
     702      m_right(other.m_right),               m_multiline(other.m_multiline),
     703      m_usingalt(other.m_usingalt),         m_selected(other.m_selected),
     704      m_button(other.m_button),             m_entrynum(other.m_entrynum),
     705      m_cursorpos(other.m_cursorpos),       m_scroller(other.m_scroller),
     706      m_scrollx(other.m_scrollx),           m_scrolly(other.m_scrolly),
     707      m_scrollstartx(other.m_scrollstartx), m_scrollendx(other.m_scrollendx),
     708      m_scrollposx(other.m_scrollposx),
     709      m_scrollstarty(other.m_scrollstarty), m_scrollendy(other.m_scrollendy),
     710      m_scrollposy(other.m_scrollposy),
     711      m_scrollinit(other.m_scrollinit),
     712      m_linespacing(other.m_linespacing),   m_draw_info_str(""),
     713      m_draw_info_len(0),                   codeci(NULL)
    752714{
    753715    QMutexLocker locker(&other.m_lock);
    754 
    755     m_displaysize = other.m_displaysize;
    756     m_screensize = other.m_screensize;
    757     m_unbiasedsize = other.m_unbiasedsize;
    758 
    759     m_message = other.m_message;
    760     m_default_msg = other.m_default_msg;
    761 
    762     m_font = other.m_font;
    763     m_altfont = other.m_altfont;
    764 
    765     m_centered = other.m_centered;
    766     m_right = other.m_right;
    767 
    768     m_multiline = other.m_multiline;
    769     m_usingalt = other.m_usingalt;
    770 
    771     m_selected = other.m_selected;
    772     m_button   = other.m_button;
    773     m_entrynum = other.m_entrynum;
    774     m_cursorpos = other.m_cursorpos;
    775 
    776     m_scroller = other.m_scroller;
    777     m_scrollx = other.m_scrollx;
    778     m_scrolly = other.m_scrolly;
    779 
    780     m_scrollinit = other.m_scrollinit;
    781 
    782     m_linespacing = other.m_linespacing;
    783 }
    784 
    785 OSDTypeText::~OSDTypeText()
    786 {
    787716}
    788717
    789718void OSDTypeText::SetAltFont(TTFFont *font)
    OSDTypeImage::OSDTypeImage(const OSDTypeImage &other) 
    13731302}
    13741303
    13751304OSDTypeImage::OSDTypeImage(const QString &name)
    1376             : OSDType(name)
     1305    : OSDType(name),
     1306      m_imagesize(),       m_displaypos(0, 0),
     1307      m_unbiasedpos(0, 0), m_filename(""),
     1308      m_isvalid(false),    m_yuv(NULL),
     1309      m_ybuffer(NULL),     m_ubuffer(NULL),
     1310      m_vbuffer(NULL),     m_alpha(NULL),
     1311      m_scalew(0),         m_scaleh(0),
     1312      m_drawwidth(-1),     m_onlyusefirst(false),
     1313      m_dontround(false),  m_cacheitem(NULL)
    13771314{
    1378     m_drawwidth = -1;
    1379     m_onlyusefirst = false;
    1380 
    1381     m_displaypos = QPoint(0, 0);
    1382     m_unbiasedpos = QPoint(0, 0);
    1383 
    1384     m_yuv = NULL;
    1385     m_alpha = NULL;
    1386     m_ybuffer = NULL;
    1387     m_ubuffer = NULL;
    1388     m_vbuffer = NULL;
    1389     m_isvalid = false;
    1390     m_filename = "";
    1391     m_cacheitem = NULL;
    1392     m_dontround = false;
    13931315}
    13941316
    13951317OSDTypeImage::OSDTypeImage(void)
    1396             : OSDType("")
     1318    : OSDType(""),
     1319      m_imagesize(),       m_displaypos(0, 0),
     1320      m_unbiasedpos(0, 0), m_filename(""),
     1321      m_isvalid(false),    m_yuv(NULL),
     1322      m_ybuffer(NULL),     m_ubuffer(NULL),
     1323      m_vbuffer(NULL),     m_alpha(NULL),
     1324      m_scalew(0),         m_scaleh(0),
     1325      m_drawwidth(-1),     m_onlyusefirst(false),
     1326      m_dontround(false),  m_cacheitem(NULL)
    13971327{
    1398     m_name = "";
    1399     m_drawwidth = -1;
    1400     m_onlyusefirst = false;
    1401 
    1402     m_displaypos = QPoint(0, 0);
    1403     m_unbiasedpos = QPoint(0, 0);
    1404 
    1405     m_yuv = NULL;
    1406     m_alpha = NULL;
    1407     m_ybuffer = NULL;
    1408     m_ubuffer = NULL;
    1409     m_vbuffer = NULL;
    1410     m_isvalid = false;
    1411     m_filename = "";
    1412     m_cacheitem = NULL;
    1413     m_dontround = false;
    14141328}
    14151329
    14161330OSDTypeImage::~OSDTypeImage()
  • mythtv/libs/libmythtv/osdtypes.h

    diff --git a/mythtv/libs/libmythtv/osdtypes.h b/mythtv/libs/libmythtv/osdtypes.h
    index 6c2e0b8..99fe601 100644
    a b class OSDType : public QObject 
    170170                      int yoff) = 0;
    171171
    172172  protected:
    173     virtual ~OSDType();
     173    virtual ~OSDType() {}
    174174
    175175  protected:
    176176    mutable QMutex m_lock;
    class OSDTypeText : public OSDType 
    243243    static QString BasicConvertFromRtoL(const QString &text);
    244244
    245245  protected:
    246     ~OSDTypeText();
     246    ~OSDTypeText() {}
    247247
    248248    void DrawString(OSDSurface *surface, QRect rect, const QString &text,
    249249                    int fade, int maxfade, int xoff, int yoff,
  • mythtv/libs/libmythtv/osdtypeteletext.cpp

    diff --git a/mythtv/libs/libmythtv/osdtypeteletext.cpp b/mythtv/libs/libmythtv/osdtypeteletext.cpp
    index 3bdbbf8..8a04832 100644
    a b OSDTypeTeletext::OSDTypeTeletext(const QString &name, TTFFont *font, 
    8585    Reset(); // initializes m_magazines
    8686}
    8787
     88OSDTypeTeletext::OSDTypeTeletext(const OSDTypeTeletext &other)
     89    : OSDType(other.m_name),       TeletextViewer(),
     90      m_displayrect(),                m_unbiasedrect(),
     91      m_box(NULL),
     92      m_tt_colspace(0),               m_tt_rowspace(0),
     93      // last fetched page
     94      m_fetchpage(0),                 m_fetchsubpage(0),
     95      m_font(NULL),
     96      // current character background
     97      m_bgcolor_y(0), m_bgcolor_u(0), m_bgcolor_v(0), m_bgcolor_a(0),
     98      // current displayed page
     99      m_curpage(0),                   m_cursubpage(0),
     100      m_curpage_showheader(false),    m_curpage_issubtitle(false),
     101      m_transparent(false),           m_revealHidden(false),
     102      m_displaying(false),            m_osd(NULL),
     103      m_header_changed(false),        m_page_changed(false),
     104      m_osd_changed(false)
     105{
     106    bzero(m_pageinput, sizeof(m_pageinput));
     107    bzero(m_header, sizeof(m_header));
     108    bzero(m_bitswap, sizeof(m_bitswap));
     109}
     110
    88111/** \fn OSDTypeTeletext::Reset(void)
    89112 *  \brief Resets the teletext data cache
    90113 */
  • mythtv/libs/libmythtv/osdtypeteletext.h

    diff --git a/mythtv/libs/libmythtv/osdtypeteletext.h b/mythtv/libs/libmythtv/osdtypeteletext.h
    index 20d7f0b..2ee719f 100644
    a b class OSDTypeTeletext : public OSDType, public TeletextViewer 
    127127  public:
    128128    OSDTypeTeletext(const QString &name, TTFFont *font,
    129129                    QRect displayrect, float wmult, float hmult, OSD *osd);
    130     OSDTypeTeletext(const OSDTypeTeletext &other)
    131         : OSDType(other.m_name), TeletextViewer() {}
     130    OSDTypeTeletext(const OSDTypeTeletext &other);
    132131    virtual ~OSDTypeTeletext() {}
    133132
    134133    void Reinit(float wmult, float hmult);
  • mythtv/libs/libmythtv/progfind.cpp

    diff --git a/mythtv/libs/libmythtv/progfind.cpp b/mythtv/libs/libmythtv/progfind.cpp
    index 6da9141..e6f13e1 100644
    a b void RunProgramFind(bool thread, bool ggActive) 
    8383}
    8484
    8585ProgFinder::ProgFinder(MythMainWindow *parent, const char *name, bool gg)
    86           : MythDialog(parent, name),
    87             arrowAccel(true)
     86    : MythDialog(parent, name),
     87      theme(NULL),        xmldata(),
     88      showsPerListing(0), curSearch(10),
     89      curProgram(0),      curShow(0),
     90      searchCount(37),    listCount(0),
     91      showCount(0),       inSearch(0),
     92      showInfo(false),    pastInitial(false),
     93      running(false),     gotInitData(NULL),
     94      ggActive(gg),       arrowAccel(true),
     95      update_Timer(NULL), m_player(NULL),
     96      baseDir(""),        searchData(NULL),
     97      initData(NULL),     progData(NULL),
     98      listRect(),         infoRect(),
     99      dateFormat(""),     timeFormat(""),
     100      channelFormat(""),  allowkeypress(false),
     101      inFill(false),      needFill(false)
    88102{
    89     curSearch = 10;
    90     searchCount = 37;
    91     ggActive = gg;
    92 
    93103    channelFormat = gContext->GetSetting("ChannelFormat", "<num> <sign>");
    94104    arrowAccel = gContext->GetNumSetting("UseArrowAccels", 1);
    95105}
  • mythtv/libs/libmythtv/transporteditor.h

    diff --git a/mythtv/libs/libmythtv/transporteditor.h b/mythtv/libs/libmythtv/transporteditor.h
    index 7c040c7..bc01dd6 100644
    a b class TransportList : public ListBoxSetting, public TransientStorage 
    4747    Q_OBJECT
    4848
    4949  public:
    50     TransportList() : ListBoxSetting(this), sourceid(0) { }
     50    TransportList() : ListBoxSetting(this), sourceid(0), cardtype(0) { }
    5151
    5252    virtual void Load(void) { fillSelections(); }
    5353    virtual void fillSelections(void);
  • mythtv/libs/libmythtv/tv_rec.cpp

    diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
    index b76d823..6dfa204 100644
    a b TVRec::TVRec(int capturecardnum) 
    105105       // Various components TVRec coordinates
    106106    : recorder(NULL), channel(NULL), signalMonitor(NULL),
    107107      scanner(NULL),
     108      // Event processing thread, runs RunTV()
     109      event_thread(pthread_t()),
     110      // Recorder thread, runs RecorderBase::StartRecording()
     111      recorder_thread(pthread_t()),
    108112      // Configuration variables from database
    109113      eitIgnoresSource(false),      transcodeFirst(false),
    110114      earlyCommFlag(false),         runJobOnHostOnly(false),
    TVRec::TVRec(int capturecardnum) 
    113117      overRecordSecNrml(0),         overRecordSecCat(0),
    114118      overRecordCategory(""),
    115119      // Configuration variables from setup rutines
    116       cardid(capturecardnum), ispip(false),
     120      cardid(capturecardnum),       ispip(false),
    117121      // State variables
    118122      stateChangeLock(true),
    119       internalState(kState_None), desiredNextState(kState_None),
    120       changeState(false), pauseNotify(true),
    121       stateFlags(0), lastTuningRequest(0),
     123      internalState(kState_None),   desiredNextState(kState_None),
     124      changeState(false),           pauseNotify(true),
     125      stateFlags(0),                lastTuningRequest(0),
    122126      m_switchingBuffer(false),
    123127      // Current recording info
    124       curRecording(NULL), autoRunJobs(JOB_NONE),
     128      curRecording(NULL),           recordEndTime(),
     129      autoRunJobs(JOB_NONE),        overrecordseconds(0),
    125130      // Pseudo LiveTV recording
    126131      pseudoLiveTVRecording(NULL),
    127132      nextLiveTVDir(""),            nextLiveTVDirLock(false),
    128133      // tvchain
    129134      tvchain(NULL),
    130135      // RingBuffer info
    131       ringBuffer(NULL), rbFileExt("mpg")
     136      ringBuffer(NULL),             rbFileExt("mpg")
    132137{
    133138    QMutexLocker locker(&cardsLock);
    134139    cards[cardid] = this;
  • mythtv/libs/libmythtv/videoout_xv.cpp

    diff --git a/mythtv/libs/libmythtv/videoout_xv.cpp b/mythtv/libs/libmythtv/videoout_xv.cpp
    index 5875725..99a387b 100644
    a b const char *vr_str[] = 
    106106 */
    107107VideoOutputXv::VideoOutputXv(MythCodecID codec_id)
    108108    : VideoOutput(),
    109       myth_codec_id(codec_id), video_output_subtype(XVUnknown),
    110       display_res(NULL), global_lock(true),
    111 
    112       XJ_root(0),  XJ_win(0), XJ_curwin(0), XJ_gc(0), XJ_screen(NULL),
    113       XJ_disp(NULL), XJ_screen_num(0),
    114       XJ_white(0), XJ_black(0), XJ_letterbox_colour(0), XJ_depth(0),
    115       XJ_started(false), XJ_monitor_sz(640,480), XJ_monitor_dim(400,300),
    116 
    117       XJ_non_xv_image(0), non_xv_frames_shown(0), non_xv_show_frame(1),
    118       non_xv_fps(0), non_xv_av_format(PIX_FMT_NB), non_xv_stop_time(0),
    119 
     109      myth_codec_id(codec_id),             video_output_subtype(XVUnknown),
     110      display_res(NULL),                   global_lock(true),
     111      // Basic X11 info
     112      XJ_root(0),   XJ_win(0),   XJ_curwin(0),   XJ_gc(0),  XJ_screen(NULL),
     113      XJ_disp(NULL),                       XJ_screen_num(0),
     114      XJ_white(0),  XJ_black(0), XJ_letterbox_colour(0),    XJ_depth(0),
     115      XJ_started(false),   XJ_monitor_sz(640,480),      XJ_monitor_dim(400,300),
     116      // Basic non-Xv drawing info
     117      XJ_non_xv_image(0),  non_xv_frames_shown(0),      non_xv_show_frame(1),
     118      non_xv_fps(0),       non_xv_av_format(PIX_FMT_NB), non_xv_stop_time(0),
     119      // Basic XvMC drawing info
    120120      xvmc_buf_attr(new XvMCBufferSettings()),
    121121      xvmc_chroma(XVMC_CHROMA_FORMAT_420), xvmc_ctx(NULL),
    122       xvmc_osd_lock(false),
    123       xvmc_tex(NULL),
    124 
    125       xv_port(-1),      xv_hue_base(0),
    126       xv_colorkey(0),   xv_draw_colorkey(false),
    127       xv_chroma(0),
    128 
    129       gl_context_lock(false), gl_context(NULL),
    130       gl_videochain(NULL), gl_pipchain(NULL),
    131       gl_osdchain(NULL),
    132 
    133       gl_use_osd_opengl2(false),
    134       gl_pip_ready(false),
    135       gl_osd_ready(false),
    136 
    137 
     122      xvmc_osd_lock(false),                xvmc_tex(NULL),
     123      // Basic Xv drawing info
     124      xv_port(-1),                         xv_hue_base(0),
     125      xv_colorkey(0),                      xv_draw_colorkey(false),
     126      xv_chroma(0),                        xv_need_bobdeint_repaint(false),
     127      // OpenGL drawing info
     128      gl_context_lock(false),              gl_context(NULL),
     129      gl_videochain(NULL),                 gl_pipchain(NULL),
     130      gl_osdchain(NULL),                   gl_use_osd_opengl2(false),
     131      gl_pip_ready(false),                 gl_osd_ready(false),
     132      // Chromakey OSD info
    138133      chroma_osd(NULL)
    139134{
    140135    VERBOSE(VB_PLAYBACK, LOC + "ctor");
    141136    bzero(&av_pause_frame, sizeof(av_pause_frame));
     137    bzero(&xvmc_surf_info, sizeof(xvmc_surf_info));
    142138
    143139    // If using custom display resolutions, display_res will point
    144140    // to a singleton instance of the DisplayRes class
  • mythtv/libs/libmythtv/xbox.cpp

    diff --git a/mythtv/libs/libmythtv/xbox.cpp b/mythtv/libs/libmythtv/xbox.cpp
    index 92779f4..a82c4fc 100644
    a b  
    77#include <stdlib.h>
    88
    99XBox::XBox(void)
     10    : timer(NULL),      RecCheck(0),
     11      RecordingLED(""), DefaultLED(""),
     12      PhaseCache(""),   BlinkBIN(""),
     13      LEDNonLiveTV(0)
    1014{
    11     timer = NULL;
    12     PhaseCache = "";
    1315}
    1416
    1517void XBox::GetSettings(void)