Skip to content

Commit

Permalink
fix signal connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
lvzhaobing committed Jun 17, 2020
1 parent e3bb7fe commit f6cc32e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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
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

0 comments on commit f6cc32e

Please sign in to comment.