Commit 7bbc2fad authored by Scott Wheeler's avatar Scott Wheeler

Backporting Tim's fix that will hopefully remove a race condition in

GStreamer.

svn path=/trunk/kdemultimedia/juk/; revision=214577
parent 4911d46d
......@@ -159,8 +159,9 @@ void GStreamerPlayer::setupPlayer()
connect(m_player, SIGNAL(streamEnd()), SLOT(stopIfNotPlaying()));
}
void GStreamerPlayer::stopIfNotPlaying() {
if (!playing())
void GStreamerPlayer::slotStopIfNotPlaying()
{
if(!playing())
stop();
}
......
......@@ -61,7 +61,7 @@ public slots:
private slots:
void slotSetPosition(long long d) { m_positionNs = d; }
void slotSetDuration(long long d) { m_durationNs = d; }
void stopIfNotPlaying();
void slotStopIfNotPlaying();
private:
void setupPlayer();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment