Skip to content

Commit

Permalink
Merge pull request #483 from kimvnhung/master
Browse files Browse the repository at this point in the history
fix: crashed on consuming QAVFrame with QGraphicsVideoItem
  • Loading branch information
valbok authored Jun 12, 2024
2 parents fe204af + 99e2982 commit aa8d0c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/QtAVPlayer/qavhwdevice_d3d11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ class VideoBuffer_D3D11: public QAVVideoBuffer_GPU
return {};

if (!m_texture) {
if (!frame())
return {};

if (frame().format() != AV_PIX_FMT_D3D11) {
qWarning() << "Only AV_PIX_FMT_D3D11 is supported, but got" << frame().formatName();
return {};
Expand Down

0 comments on commit aa8d0c6

Please sign in to comment.