提交 3b15ab0f 编写于 作者: Z Zhang Rui

ijksdl: add SDL_VouFreeOverlay

上级 6ff4f411
...@@ -473,7 +473,7 @@ static void stream_close(FFPlayer *ffp) ...@@ -473,7 +473,7 @@ static void stream_close(FFPlayer *ffp)
avfilter_unref_bufferp(&vp->picref); avfilter_unref_bufferp(&vp->picref);
#endif #endif
if (vp->bmp) { if (vp->bmp) {
SDL_FreeYUVOverlay(vp->bmp); SDL_VoutFreeYUVOverlay(vp->bmp);
vp->bmp = NULL; vp->bmp = NULL;
} }
} }
......
...@@ -43,3 +43,15 @@ SDL_VoutSurface *SDL_VoutSetVideoMode(SDL_Vout *vout, int w, int h, int bpp, Uin ...@@ -43,3 +43,15 @@ SDL_VoutSurface *SDL_VoutSetVideoMode(SDL_Vout *vout, int w, int h, int bpp, Uin
assert(vout); assert(vout);
return vout->set_video_mode(vout, w, h, bpp, flags); return vout->set_video_mode(vout, w, h, bpp, flags);
} }
void SDL_VouFreeOverlay(SDL_VoutOverlay *overlay)
{
if (!overlay)
return;
if (overlay->free_l) {
overlay->free_l(overlay);
} else {
free(overlay);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册