summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-13 20:48:11 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-13 20:48:11 +0200
commita22e1e14c8b7e33dea182376bb32b77079e3317d (patch)
tree8148e75538b1386d8cadf0f9041d6e4ddafaf048 /src/xine-engine/xine.c
parent03918189506c443594f325a836b54220d36bb5a1 (diff)
downloadxine-lib-a22e1e14c8b7e33dea182376bb32b77079e3317d.tar.gz
xine-lib-a22e1e14c8b7e33dea182376bb32b77079e3317d.tar.bz2
Add a global handle for libxdg-basedir library to xine_s.
This handle can then be used by all plugins and other parts of the xine engine without having to duplicate it.
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r--src/xine-engine/xine.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index f49a988c9..402aaec66 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.c
@@ -47,6 +47,8 @@
#include <locale.h>
#endif
+#include <basedir.h>
+
#define LOG_MODULE "xine"
#define LOG_VERBOSE
/*
@@ -1410,6 +1412,8 @@ void xine_exit (xine_t *this) {
WSACleanup();
#endif
+ xdgFreeHandle(this->basedir_handle);
+
free (this);
}
@@ -1538,6 +1542,9 @@ void xine_init (xine_t *this) {
static const char *demux_strategies[] = {"default", "reverse", "content",
"extension", NULL};
+ /* First of all, initialise libxdg-basedir as it's used by plugins. */
+ this->basedir_handle = xdgAllocHandle();
+
/* initialize color conversion tables and functions */
init_yuv_conversion();