mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
完善test_player
This commit is contained in:
parent
305722e5d6
commit
8e63b7fefa
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user