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:
reimar 2005-04-27 12:15:37 +00:00
parent bf76dae570
commit ec9db5fc78
1 changed files with 8 additions and 0 deletions

View File

@ -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;