Merge pull request #1809 from Dw9/master

完善test_player
This commit is contained in:
夏楚 2022-07-19 11:15:41 +08:00 committed by GitHub
commit 7b3968d949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -67,7 +67,8 @@ public:
} }
flag = task(); flag = task();
break; break;
case SDL_QUIT: }
case SDL_QUIT:{
InfoL << event.type; InfoL << event.type;
return; return;
} }
@ -168,7 +169,7 @@ public:
} }
} }
if (_texture) { if (_texture) {
#if (SDL_PATCHLEVEL >= 16 || SDL_MINOR_VERSION > 0) #if SDL_VERSION_ATLEAST(2,0,16)
//需要更新sdl到最新>=2.0.16 //需要更新sdl到最新>=2.0.16
if (pFrame->format == AV_PIX_FMT_NV12) { if (pFrame->format == AV_PIX_FMT_NV12) {
SDL_UpdateNVTexture( SDL_UpdateNVTexture(