wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.95k stars 1.5k forks source link

请问 GLWidgetRenderer2 与 QML引擎冲突怎么解决? #1142

Open coderlxn opened 6 years ago

coderlxn commented 6 years ago

QtAV 1.12.0 Build with Qt-5.7.1 FFmpeg/Libav configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma

我现在的项目中同时有QWidet和QML,现在在播放视频的过程中刷新QML组件,会导致播放器卡住。 问题的原因是 paintGL 方法的 swapBuffers();

image

wangpengcheng commented 5 years ago

我这边也遇到这个问题了,不过是QML不刷新

coderlxn commented 5 years ago

@wangpengcheng 我把Qt升级到5.9之后这个问题解决了