Ticket #3328: init-metadata.patch

File init-metadata.patch, 1.9 KB (added by myth@…, 13 years ago)

patch to initialise m_parent to 0.

  • mythplugins/mythmusic/mythmusic/mainvisual.h

     
    130130
    131131private:
    132132    VisualBase *vis;
    133     InfoWidget* info_widget;
    134133    Metadata *meta;
    135134    QPixmap pixmap;
    136135    QPtrList<VisualNode> nodes;
     136    bool playing;
     137    int fps;
    137138    QTimer *timer;
    138139    QTimer *bannerTimer;
    139     bool playing;
    140     int fps;
     140    InfoWidget* info_widget;
    141141
    142142    QString current_visual_name;
    143143};
  • mythplugins/mythmusic/mythmusic/metadata.cpp

     
    13751375/**************************************************************************/
    13761376
    13771377AlbumArtImages::AlbumArtImages(Metadata *metadata)
     1378    : m_parent(metadata)
    13781379{
    1379     m_parent = metadata;
    13801380    m_imageList.setAutoDelete(true);
    13811381
    13821382    findImages();
     
    13861386{
    13871387    m_imageList.clear();
    13881388
     1389    if (m_parent == NULL)
     1390        return;
     1391
    13891392    QFileInfo fi(m_parent->Filename());
    13901393    QString dir = fi.dirPath(true);
    13911394    dir.remove(0, Metadata::GetStartdir().length());
  • mythplugins/mythmusic/mythmusic/mainvisual.cpp

     
    7777}
    7878
    7979MainVisual::MainVisual(QWidget *parent, const char *name)
    80     : QWidget( parent, name ), vis( 0 ), playing( FALSE ), fps( 20 )
     80    : QWidget(parent, name), vis(0), meta(0), playing(FALSE), fps(20),
     81      timer (0), bannerTimer(0), info_widget(0)
    8182{
    8283    int screenwidth = 0, screenheight = 0;
    8384    float wmult = 0, hmult = 0;