comparison libvo/vo_ggi.c @ 15272:db06e2acdf3d

Make it possible to use a ggi device string that contains a ',' by writing a '.' instead.
author reimar
date Wed, 27 Apr 2005 12:15:37 +0000
parents c4fe6bb22e2e
children 04c47e9acab3
comparison
equal deleted inserted replaced
15271:15504d659558 15272:db06e2acdf3d
379 mp_msg(MSGT_VO, MSGL_FATAL, "[ggi] unable to initialize GGI\n"); 379 mp_msg(MSGT_VO, MSGL_FATAL, "[ggi] unable to initialize GGI\n");
380 return(-1); 380 return(-1);
381 } 381 }
382 382
383 if ((char *)arg) 383 if ((char *)arg)
384 {
385 int i = 0;
384 ggi_conf.driver = strdup(arg); 386 ggi_conf.driver = strdup(arg);
387 while (ggi_conf.driver[i]) {
388 if (ggi_conf.driver[i] == '.')
389 ggi_conf.driver[i] = ',';
390 i++;
391 }
392 }
385 else 393 else
386 ggi_conf.driver = NULL; 394 ggi_conf.driver = NULL;
387 395
388 ggi_conf.parentvis = ggiOpen(ggi_conf.driver); 396 ggi_conf.parentvis = ggiOpen(ggi_conf.driver);
389 if (ggi_conf.parentvis == NULL) 397 if (ggi_conf.parentvis == NULL)