mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 时间线的效果名不显示路径
This commit is contained in:
parent
4ee4e82325
commit
ada0c6d13f
2 changed files with 26 additions and 8 deletions
|
|
@ -98,6 +98,10 @@ bool GraphicsCaptureFrameSource::Initialize() {
|
|||
}
|
||||
|
||||
FrameSourceBase::UpdateState GraphicsCaptureFrameSource::Update() {
|
||||
if (!_captureSession) {
|
||||
return UpdateState::Waiting;
|
||||
}
|
||||
|
||||
// 每次睡眠 1 毫秒等待新帧到达,防止 CPU 占用过高
|
||||
BOOL update = FALSE;
|
||||
|
||||
|
|
@ -117,8 +121,7 @@ FrameSourceBase::UpdateState GraphicsCaptureFrameSource::Update() {
|
|||
winrt::Direct3D11CaptureFrame frame = _captureFramePool.TryGetNextFrame();
|
||||
if (!frame) {
|
||||
// 缓冲池没有帧,不应发生此情况
|
||||
//assert(false);
|
||||
|
||||
assert(false);
|
||||
return UpdateState::Waiting;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue