[vlc-commits] plugin cache: do not re-write the cache file unless explicitly requested by the user ( closes #14519)

Felix Paul Kühne git at videolan.org
Sat Jul 25 16:24:42 CEST 2015


vlc/vlc-2.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jul 25 15:36:20 2015 +0200| [bad49508215d6e3728c40779d65750c85b5c7dc8] | committer: Felix Paul Kühne

plugin cache: do not re-write the cache file unless explicitly requested by the user (closes #14519)

This is a manual adaptation of 0c400688 limited to Darwin platforms to not break compatibility with previous 2.2 release on other platforms relying on the previous behavior

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=bad49508215d6e3728c40779d65750c85b5c7dc8
---

 src/modules/bank.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/bank.c b/src/modules/bank.c
index 6655f00..b439440 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -411,6 +411,9 @@ static void AllocatePluginPath (vlc_object_t *p_this, const char *path,
                 free (cache[i].path);
             }
             free( cache );
+#ifdef __APPLE__
+            break;
+#endif
         case CACHE_RESET:
             CacheSave (p_this, path, bank.cache, bank.i_cache);
         case CACHE_IGNORE:



More information about the vlc-commits mailing list