diff options
Diffstat (limited to 'vrplayer/playvideo.cpp')
-rw-r--r-- | vrplayer/playvideo.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vrplayer/playvideo.cpp b/vrplayer/playvideo.cpp index 40ddbf29..e1a7ec90 100644 --- a/vrplayer/playvideo.cpp +++ b/vrplayer/playvideo.cpp @@ -105,6 +105,11 @@ label1: } } +void PlayVideo::onMediaRestarted() +{ + elapsedTime = av_gettime(); +} + void PlayVideo::onMediaSeek(int value) { posMutex.lock(); @@ -125,7 +130,7 @@ void PlayVideo::updateMediaPos() posMutex.lock(); if (la_seekPos >= 0) { - qDebug() << "seeking to" << la_seekPos; + //qDebug() << "seeking to" << la_seekPos; xrdpvr_seek_media(la_seekPos, 0); elapsedTime = av_gettime() - la_seekPos * 1000000; la_seekPos = -1; @@ -164,7 +169,7 @@ void DecoderThread::updateSlider() mutex.lock(); if (la_seekPos >= 0) { - qDebug() << "seeking to" << la_seekPos; + //qDebug() << "seeking to" << la_seekPos; //audioTimer->stop(); //videoTimer->stop(); xrdpvr_seek_media(la_seekPos, 0); |