Skip to content

Commit

Permalink
fix build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Apr 11, 2014
1 parent 3e56c0e commit 7df783a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion QtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CONFIG -= ordered
SUBDIRS = libqtav
libqtav.file = src/libQtAV.pro
greaterThan(QT_MAJOR_VERSION, 4) {
qtHaveModule(quick) {
# qtHaveModule does not exist in Qt5.0
isEqual(QT_MINOR_VERSION, 0)|qtHaveModule(quick) {
SUBDIRS += libqmlav
libqmlav.file = qml/libQmlAV.pro
libqmlav.depends += libqtav
Expand Down
6 changes: 6 additions & 0 deletions examples/common/ScreenSaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ static QLibrary xlib;
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QAbstractNativeEventFilter>
#endif
//mingw gcc4.4 EXECUTION_STATE
#ifdef __MINGW32__
#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0410
#endif //_WIN32_WINDOWS
#endif //__MINGW32__
#include <windows.h>
#define USE_NATIVE_EVENT 0

Expand Down
15 changes: 9 additions & 6 deletions examples/examples.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ SUBDIRS += \
filters \
videographicsitem \
videogroup \
videowall \
qmlmultiwindow
videowall

player.depends += common

greaterThan(QT_MAJOR_VERSION, 4):qtHaveModule(quick) {
SUBDIRS += QMLPlayer \
qmlvideofx
QMLPlayer.depends += common
greaterThan(QT_MAJOR_VERSION, 4) {
# qtHaveModule does not exist in Qt5.0
isEqual(QT_MINOR_VERSION, 0)|qtHaveModule(quick) {
SUBDIRS += QMLPlayer \
qmlvideofx \
qmlmultiwindow
QMLPlayer.depends += common
}
}
2 changes: 1 addition & 1 deletion src/QtAV/AVDemuxer.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class Q_AV_EXPORT AVDemuxer : public QObject //QIODevice?
signals:
/*emit when the first frame is read*/
void started();
Q_DECL_DEPRECATED void finished(); //end of file
void finished(); //end of file
void error(const QtAV::AVError& e); //explictly use QtAV::AVError in connection for Qt4 syntax
void mediaStatusChanged(QtAV::MediaStatus status);

Expand Down

0 comments on commit 7df783a

Please sign in to comment.