summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcommander kotori <cmdrkotori@gmail.com>2015-12-03 18:16:52 +1000
committerwm4 <wm4@nowhere>2015-12-03 10:41:49 +0100
commit6562d4a56276fdf109914924faa6c859d2079ee3 (patch)
treea987f8c77235a9edc62da746e32870aebce622f0
parent17507b593506ad820cfabbe2fcec208ffe9d073f (diff)
downloadmpv-6562d4a56276fdf109914924faa6c859d2079ee3.tar.bz2
mpv-6562d4a56276fdf109914924faa6c859d2079ee3.tar.xz
examples/qt_opengl: remove redundant time-start property fetch
Time-start is not a real property since 70df1608d. Fixes #2529.
-rw-r--r--DOCS/client_api_examples/qt_opengl/mainwindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/DOCS/client_api_examples/qt_opengl/mainwindow.cpp b/DOCS/client_api_examples/qt_opengl/mainwindow.cpp
index 2e3cf210ee..3ecd0a196d 100644
--- a/DOCS/client_api_examples/qt_opengl/mainwindow.cpp
+++ b/DOCS/client_api_examples/qt_opengl/mainwindow.cpp
@@ -48,6 +48,5 @@ void MainWindow::pauseResume()
void MainWindow::setSliderRange(int duration)
{
- const int time0 = m_mpv->getProperty("time-start").toInt();
- m_slider->setRange(time0, time0+duration);
+ m_slider->setRange(0, duration);
}