diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2012-01-18 22:07:39 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2012-01-18 22:07:39 +0000 |
commit | 50a5368b8765271ce273b9950ec4b85118ecb5a3 (patch) | |
tree | 59d3ebc88c4bb198fa2a97b4b462c990a1f5c596 /misc/xine-list.c | |
parent | 3119dd2de36dbd8bb9af95ab1826c15f3099b597 (diff) | |
parent | a5d426c371ba02f6065a19dd9707cf248df245d5 (diff) | |
download | xine-lib-50a5368b8765271ce273b9950ec4b85118ecb5a3.tar.gz xine-lib-50a5368b8765271ce273b9950ec4b85118ecb5a3.tar.bz2 |
Merge from 1.1.
--HG--
rename : include/xine.h.in => include/xine.h
rename : src/xine-engine/xine_internal.h => include/xine/xine_internal.h
rename : src/combined/ffmpeg/ffmpeg_encoder.c => src/dxr3/ffmpeg_encoder.c
Diffstat (limited to 'misc/xine-list.c')
-rw-r--r-- | misc/xine-list.c | 10 |
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; |