mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
fixed memleak caused by multiple config() calls - thx Gabu
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8500 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f400c5a7f
commit
70ccd1c7d1
@ -37,6 +37,7 @@ struct vf_priv_s {
|
||||
static int config(struct vf_instance_s* vf,
|
||||
int width, int height, int d_width, int d_height,
|
||||
unsigned int voflags, unsigned int outfmt){
|
||||
if(vf->priv->context) pp_free_context(vf->priv->context);
|
||||
vf->priv->context= pp_get_context(width, height,
|
||||
(gCpuCaps.hasMMX ? PP_CPU_CAPS_MMX : 0)
|
||||
| (gCpuCaps.hasMMX2 ? PP_CPU_CAPS_MMX2 : 0)
|
||||
|
Loading…
Reference in New Issue
Block a user