mirror of
https://github.com/mpv-player/mpv
synced 2024-10-06 14:54:02 +02:00
prevent XFree execution on wrong condition
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13102 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f7e124ccdb
commit
eaa8aeddeb
@ -207,8 +207,8 @@ int attrib_count,i;
|
||||
if(keycolor_handling == AUTO_COLORKEY){
|
||||
//XV_AUTOPING_COLORKEY doesn't work for XvMC yet(NVidia 43.63)
|
||||
attributes = XvQueryPortAttributes(mDisplay, xv_port, &attrib_count);
|
||||
if(attributes!=NULL)
|
||||
for (i = 0; i < attrib_count; i++)
|
||||
if(attributes!=NULL){
|
||||
for (i = 0; i < attrib_count; i++){
|
||||
if (!strcmp(attributes[i].name, "XV_AUTOPAINT_COLORKEY"))
|
||||
{
|
||||
xv_atom = XInternAtom(mDisplay, "XV_AUTOPAINT_COLORKEY", False);
|
||||
@ -220,8 +220,10 @@ int attrib_count,i;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
XFree(attributes);
|
||||
}
|
||||
}
|
||||
|
||||
xv_atom = XInternAtom(mDisplay, "XV_COLORKEY",False);
|
||||
if(xv_atom == None) return;
|
||||
|
Loading…
Reference in New Issue
Block a user