Skip to content

Commit

Permalink
fix fifo read
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzhuohua committed Jun 18, 2024
1 parent 3d937b9 commit 619fa3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/QQuickRealTimePlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ shared_ptr<AVFrame> QQuickRealTimePlayer::getFrame(bool &got) {
return {};
}
// 从帧缓冲区取出帧
frame = videoFrameQueue.back();
frame = videoFrameQueue.front();
got = true;
// 缓冲区出队被渲染的帧
videoFrameQueue.pop();
Expand Down

0 comments on commit 619fa3d

Please sign in to comment.