summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2012-01-18 21:48:29 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2012-01-18 21:48:29 +0000
commit7c873b0529321eafb2968903dfcfd4258fcf6005 (patch)
tree63fea15b89aad68725988f3f3ef8aec0f80b3107 /misc
parentc2ffae7ba0ec07f30e1887ff7ba4612c19e2dce4 (diff)
downloadxine-lib-7c873b0529321eafb2968903dfcfd4258fcf6005.tar.gz
xine-lib-7c873b0529321eafb2968903dfcfd4258fcf6005.tar.bz2
Hack to avoid xine-list-* causing catalog.cache to be written.
Diffstat (limited to 'misc')
-rw-r--r--misc/xine-list.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/xine-list.c b/misc/xine-list.c
index ec7b7f694..c9e160b2f 100644
--- a/misc/xine-list.c
+++ b/misc/xine-list.c
@@ -107,6 +107,16 @@ to the extent permitted by law.\n",
return 0;
xine_t *xine = xine_new ();
+
+ /* Avoid writing catalog.cache if possible */
+ int major, minor, sub;
+ xine_get_version (&major, &minor, &sub);
+ if ((major == 1 && minor == 1 && sub > 20) ||
+ (major == 1 && minor == 2 && sub > 0) ||
+ (major == 1 && minor > 2) ||
+ (major > 1))
+ xine_set_flags (xine, XINE_FLAG_NO_WRITE_CACHE);
+
xine_init (xine);
char *text = NULL;