Skip to content

Commit a605514

Browse files
j00zekHuevos
authored andcommitted
fix building list of args for execution
Before: arg name and value were 'joined' together and pushed to the list of args as a single arg E.g. "-0 0" causing exteplayer3 to incorrectly interpret them After: arg name and value are pushed to the args list separatedly E.g. "-0" "0" enabling exteplayer3 to work properly
1 parent 1b15fd4 commit a605514

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/serviceapp/exteplayer3.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,8 @@ std::vector<std::string> ExtEplayer3::buildCommand()
179179
}
180180
if (i->second.getType() == "int" || i->second.getType() == "string")
181181
{
182-
std::stringstream ss;
183-
ss << i->second.getAppArg();
184-
ss << " ";
185-
ss << i->second.getValue();
186-
args.push_back(ss.str());
187-
}
182+
args.push_back(i->second.getAppArg()); //add arg name to list of args
183+
args.push_back(i->second.getValue()); //add value to list of args }
188184
}
189185
return args;
190186
}

0 commit comments

Comments
 (0)