Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

videographicsitem例子,时常播放视频无声音,尝试解决ing #1367

Open
hanxiaofei1213 opened this issue Mar 12, 2021 · 1 comment

Comments

@hanxiaofei1213
Copy link

QtAV, Qt version and platform

or commit id if not using release version

Reproduction steps

Expected behavior

Actual behavior

Log file

set environment var QTAV_LOG=all or C++ api QtAV::setLogLevel(All) to enable log.

For Player and QMLPlayer example app, choose log level all in config page.

Sample files (optional)

@hanxiaofei1213 hanxiaofei1213 changed the title videographicsitem例子,时常播放视频无声音 videographicsitem例子,时常播放视频无声音,尝试解决ing Mar 12, 2021
@hanxiaofei1213
Copy link
Author

用vs2019运行代码后,若连续打开文件,大概十次就会出现视频丢失音频的情况。直接原因是 AVPlayer.cpp 中 AVPlayer::playInterna()(1253行)函数里面的athread为空。根本原因还不得而知。

但是使用Qt Creator运行程序后,测试40次,并无此问题。
直接运行vs2019编译好的exe,测试40次也均未出现问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant