vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Sat Feb 7 20:42:08 2015 +0200| [7e7726e434cecfc7ebe0ae2e583edc4566a3f3ce] | committer: Rémi Denis-Courmont
modules: print error if reading the plugins cache fails (as opposed to reaching premature end-of-file) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7e7726e434cecfc7ebe0ae2e583edc4566a3f3ce --- src/modules/cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/cache.c b/src/modules/cache.c index f94d091..16f008a 100644 --- a/src/modules/cache.c +++ b/src/modules/cache.c @@ -385,6 +385,8 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r ) return i_cache; error: + if (ferror (file)) + msg_Err(p_this, "plugins cache read error: %s", vlc_strerror_c(errno)); msg_Warn( p_this, "plugins cache not loaded (corrupted)" ); /* TODO: cleanup */ _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits