Skip to content

Commit 3e6f280

Browse files
authored
Merge pull request #1317 from lvzhaobing/master
edit qmltypes and fix a signal connection error
2 parents 7e546d7 + f6cc32e commit 3e6f280

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

qml/QmlAV/QmlAVPlayer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public Q_SLOTS:
342342
void statusChanged();
343343
void mediaObjectChanged();
344344
void audioBackendsChanged();
345-
void notifyIntervalChanged(int notifyInterval);
345+
void notifyIntervalChanged();
346346

347347
private Q_SLOTS:
348348
// connect to signals from player
@@ -401,7 +401,6 @@ private Q_SLOTS:
401401
QList<QuickAudioFilter*> m_afilters;
402402
QList<QuickVideoFilter*> m_vfilters;
403403
QStringList m_ao;
404-
int m_notifyInterval;
405404
};
406405

407406
#endif // QTAV_QML_AVPLAYER_H

qml/QmlAVPlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void QmlAVPlayer::classBegin()
8989
connect(mpPlayer, SIGNAL(seekableChanged()), SIGNAL(seekableChanged()));
9090
connect(mpPlayer, SIGNAL(seekFinished(qint64)), this, SIGNAL(seekFinished()), Qt::DirectConnection);
9191
connect(mpPlayer, SIGNAL(bufferProgressChanged(qreal)), SIGNAL(bufferProgressChanged()));
92-
connect(mpPlayer, SIGNAL(notifyIntervalChanged()), SIGNAL(notifyIntervalChanged()));
92+
connect(mpPlayer, SIGNAL(notifyIntervalChanged()), this,SIGNAL(notifyIntervalChanged()));
9393
connect(this, SIGNAL(channelLayoutChanged()), SLOT(applyChannelLayout()));
9494
// direct connection to ensure volume() in slots is correct
9595
connect(mpPlayer->audio(), SIGNAL(volumeChanged(qreal)), SLOT(applyVolume()), Qt::DirectConnection);

qml/plugins.qmltypes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import QtQuick.tooling 1.1
1+
import QtQuick.tooling 1.1
22

33
// This file describes the plugin-supplied types contained in the library.
44
// It is used for QML tooling purposes only.
@@ -248,6 +248,7 @@ Module {
248248
Property { name: "videoFilters"; type: "QuickVideoFilter"; isList: true; isReadonly: true }
249249
Property { name: "audioBackends"; type: "QStringList" }
250250
Property { name: "supportedAudioBackends"; type: "QStringList"; isReadonly: true }
251+
Property { name: "notifyInterval"; type: "int" }
251252
Signal { name: "loopCountChanged" }
252253
Signal { name: "videoOutChanged" }
253254
Signal { name: "paused" }

0 commit comments

Comments
 (0)