From 7c873b0529321eafb2968903dfcfd4258fcf6005 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Wed, 18 Jan 2012 21:48:29 +0000 Subject: Hack to avoid xine-list-* causing catalog.cache to be written. --- misc/xine-list.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'misc') 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; -- cgit v1.2.3