mirror of https://github.com/mpv-player/mpv
Make it possible to use a ggi device string that contains a ',' by writing
a '.' instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15273 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bf76dae570
commit
ec9db5fc78
|
@ -381,7 +381,15 @@ static uint32_t preinit(const char *arg)
|
|||
}
|
||||
|
||||
if ((char *)arg)
|
||||
{
|
||||
int i = 0;
|
||||
ggi_conf.driver = strdup(arg);
|
||||
while (ggi_conf.driver[i]) {
|
||||
if (ggi_conf.driver[i] == '.')
|
||||
ggi_conf.driver[i] = ',';
|
||||
i++;
|
||||
}
|
||||
}
|
||||
else
|
||||
ggi_conf.driver = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue