Ticket #9653: mythmusic.diff

File mythmusic.diff, 1.4 KB (added by Lawrence Rust <lvr@…>, 9 years ago)
  • mythplugins/mythmusic/mythmusic/cddecoder.h

    # Patches to MythMusic cross compile to MacOSX 10.4+ with gcc 4.0.1
    diff --git a/mythplugins/mythmusic/mythmusic/cddecoder.h b/mythplugins/mythmusic/mythmusic/cddecoder.h
    index 454f913..e92d6f7 100644
     
    77
    88#if CONFIG_DARWIN
    99#include <vector>
     10using std::vector;
    1011#endif
    1112
    1213#if defined(__linux__) || defined(__FreeBSD__)
  • mythplugins/mythmusic/mythmusic/visualize.h

    diff --git a/mythplugins/mythmusic/mythmusic/visualize.h b/mythplugins/mythmusic/mythmusic/visualize.h
    index 20826c7..1c18041 100644
     
    1313#define VISUALIZE_H
    1414
    1515// C++ headers
    16 #include <vector>
    17 using namespace std;
     16#include <QVector>
    1817
    1918// MythTV headers
    2019#include <visual.h>
    class Spectrum : public VisualBase 
    6665    inline double clamp(double cur, double max, double min);
    6766
    6867    QColor startColor, targetColor;
    69     vector<QRect> rects;
    70     vector<double> magnitudes;
     68    QVector<QRect> rects;
     69    QVector<double> magnitudes;
    7170    QSize size;
    7271    LogScale scale;
    7372    double scaleFactor, falloff;
    class Gears : public QGLWidget, public VisualBase 
    161160               
    162161  private:
    163162    QColor startColor, targetColor;
    164     vector<QRect> rects;
    165     vector<double> magnitudes;
     163    QVector<QRect> rects;
     164    QVector<double> magnitudes;
    166165    QSize size;
    167166    LogScale scale;
    168167    double scaleFactor, falloff;