summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwangwenx190 <2546789017@qq.com>2018-05-31 12:54:46 +0800
committerwm4 <1387750+wm4@users.noreply.github.com>2019-09-13 13:52:53 +0200
commitbbeb1a25c1b2982a11f24d3b017ae37a7921c738 (patch)
treeab29a2c7e0885610f3c8e2ff95e1c33a94d2c471
parentb51d901b79d1b8b433ad22fca91ea44e45096887 (diff)
downloadmpv-examples-bbeb1a25c1b2982a11f24d3b017ae37a7921c738.tar.bz2
mpv-examples-bbeb1a25c1b2982a11f24d3b017ae37a7921c738.tar.xz
Fix typo.
-rw-r--r--libmpv/qt_opengl/mpvwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpv/qt_opengl/mpvwidget.cpp b/libmpv/qt_opengl/mpvwidget.cpp
index 0270912..16ee17e 100644
--- a/libmpv/qt_opengl/mpvwidget.cpp
+++ b/libmpv/qt_opengl/mpvwidget.cpp
@@ -70,12 +70,12 @@ void MpvWidget::initializeGL()
if (mpv_render_context_create(&mpv_gl, mpv, params) < 0)
throw std::runtime_error("failed to initialize mpv GL context");
- mpv_render_context_set_update_callback(mpv_gl, MpvWidget::on_update, (void *)this);
+ mpv_render_context_set_update_callback(mpv_gl, MpvWidget::on_update, reinterpret_cast<void *>(this));
}
void MpvWidget::paintGL()
{
- mpv_opengl_fbo mpfbo{static_cast<int>(defaultFramebufferObject()), fbo->width(), fbo->height(), 0};
+ mpv_opengl_fbo mpfbo{static_cast<int>(defaultFramebufferObject()), width(), height(), 0};
int flip_y{1};
mpv_render_param params[] = {