blob: c246402648646630fee3ad9921e7d3bffa0826eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -urN a/src/osgPlugins/xine/ReaderWriterXine.cpp b/src/osgPlugins/xine/ReaderWriterXine.cpp
--- a/src/osgPlugins/xine/ReaderWriterXine.cpp 2010-03-13 11:38:10.000000000 +0100
+++ b/src/osgPlugins/xine/ReaderWriterXine.cpp 2010-04-28 22:54:29.203481468 +0200
@@ -326,9 +326,8 @@
const char* user_home = xine_get_homedir();
if(user_home)
{
- char* cfgfile = NULL;
- int result = asprintf(&(cfgfile), "%s/.xine/config", user_home);
- if (result>0) xine_config_load(_xine, cfgfile);
+ std::string configFile(std::string(user_home)+"/.xine/config");
+ xine_config_load(_xine, configFile.c_str());
}
xine_init(_xine);
|