Skip to content

Commit f6cc32e

Browse files
committed
fix signal connection error
1 parent e3bb7fe commit f6cc32e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qml/QmlAV/QmlAVPlayer.h

Lines changed: 1 addition & 1 deletion
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

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);

0 commit comments

Comments
 (0)