Skip to content

Commit

Permalink
映像が表示されなくなっていた問題の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Ojii committed Jul 14, 2024
1 parent 926f29a commit a9e2653
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FDK19/src/04.Graphic/CVideoDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void Seek(long timestampms)
lastTexture = new CTexture(device, new SKBitmap(FrameSize.Width, FrameSize.Height));
}

public void GetNowFrame(ref CTexture Texture)
public void GetNowFrame(ref CTexture? Texture)
{
if (this.bPlaying && decodedframes.Count != 0)
{
Expand Down
4 changes: 3 additions & 1 deletion TJAPlayer3-f/src/Stages/07.Game/CAct演奏AVI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ public unsafe int t進行描画()
{
if (!base.b活性化してない)
{
if (this.rVD is null || this.tx描画用 is null)
if (this.rVD is null)
return 0;

this.rVD.GetNowFrame(ref this.tx描画用);

if (this.tx描画用 is null)
return 0;
this.tx描画用.vcScaling.X = this.ratio1;
this.tx描画用.vcScaling.Y = this.ratio1;

Expand Down

0 comments on commit a9e2653

Please sign in to comment.