Skip to content

Commit

Permalink
Merge pull request wang-bin#1317 from lvzhaobing/master
Browse files Browse the repository at this point in the history
edit qmltypes and fix a signal connection error
  • Loading branch information
wang-bin authored Jun 17, 2020
2 parents 7e546d7 f6cc32e commit 3e6f280
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions qml/QmlAV/QmlAVPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 342,7 @@ public Q_SLOTS:
void statusChanged();
void mediaObjectChanged();
void audioBackendsChanged();
void notifyIntervalChanged(int notifyInterval);
void notifyIntervalChanged();

private Q_SLOTS:
// connect to signals from player
Expand Down Expand Up @@ -401,7 401,6 @@ private Q_SLOTS:
QList<QuickAudioFilter*> m_afilters;
QList<QuickVideoFilter*> m_vfilters;
QStringList m_ao;
int m_notifyInterval;
};

#endif // QTAV_QML_AVPLAYER_H
2 changes: 1 addition & 1 deletion qml/QmlAVPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 89,7 @@ void QmlAVPlayer::classBegin()
connect(mpPlayer, SIGNAL(seekableChanged()), SIGNAL(seekableChanged()));
connect(mpPlayer, SIGNAL(seekFinished(qint64)), this, SIGNAL(seekFinished()), Qt::DirectConnection);
connect(mpPlayer, SIGNAL(bufferProgressChanged(qreal)), SIGNAL(bufferProgressChanged()));
connect(mpPlayer, SIGNAL(notifyIntervalChanged()), SIGNAL(notifyIntervalChanged()));
connect(mpPlayer, SIGNAL(notifyIntervalChanged()), this,SIGNAL(notifyIntervalChanged()));
connect(this, SIGNAL(channelLayoutChanged()), SLOT(applyChannelLayout()));
// direct connection to ensure volume() in slots is correct
connect(mpPlayer->audio(), SIGNAL(volumeChanged(qreal)), SLOT(applyVolume()), Qt::DirectConnection);
Expand Down
3 changes: 2 additions & 1 deletion qml/plugins.qmltypes
Original file line number Diff line number Diff line change
@@ -1,4 1,4 @@
import QtQuick.tooling 1.1
import QtQuick.tooling 1.1

// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Expand Down Expand Up @@ -248,6 248,7 @@ Module {
Property { name: "videoFilters"; type: "QuickVideoFilter"; isList: true; isReadonly: true }
Property { name: "audioBackends"; type: "QStringList" }
Property { name: "supportedAudioBackends"; type: "QStringList"; isReadonly: true }
Property { name: "notifyInterval"; type: "int" }
Signal { name: "loopCountChanged" }
Signal { name: "videoOutChanged" }
Signal { name: "paused" }
Expand Down

0 comments on commit 3e6f280

Please sign in to comment.