mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
Move two variable to the scope where they are indeed used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25488 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bfef84e32f
commit
d2cef4c240
@ -144,10 +144,10 @@ char* m_properties_expand_string(m_option_t* prop_list,char* str, void *ctx) {
|
||||
l = 0;
|
||||
str = e+1;
|
||||
} else if(str[0] == '?' && str[1] == '(' && (e = strchr(str+2,':'))) {
|
||||
int pl = e-str-2;
|
||||
char pname[pl+1];
|
||||
lvl++;
|
||||
if(!skip) {
|
||||
int pl = e-str-2;
|
||||
char pname[pl+1];
|
||||
memcpy(pname,str+2,pl);
|
||||
pname[pl] = 0;
|
||||
if(m_property_do(prop_list,pname,M_PROPERTY_GET,NULL,ctx) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user