2008-06-09 18:55:43 -04:00
|
|
|
$OpenBSD: patch-src_misc_modules_c,v 1.7 2008/06/09 22:55:43 sthen Exp $
|
|
|
|
--- src/misc/modules.c.orig Sat May 10 12:26:00 2008
|
|
|
|
+++ src/misc/modules.c Wed Jun 4 10:14:32 2008
|
|
|
|
@@ -1591,6 +1591,7 @@ static char * GetWindowsError( void )
|
2005-12-21 22:45:36 -05:00
|
|
|
*****************************************************************************/
|
|
|
|
static void CacheLoad( vlc_object_t *p_this )
|
|
|
|
{
|
|
|
|
+#if 0
|
|
|
|
char *psz_filename, *psz_homedir;
|
|
|
|
FILE *file;
|
|
|
|
int i, j, i_size, i_read;
|
2008-06-09 18:55:43 -04:00
|
|
|
@@ -1709,6 +1710,7 @@ static void CacheLoad( vlc_object_t *p_this )
|
2005-12-21 22:45:36 -05:00
|
|
|
if( i_cache )
|
|
|
|
pp_cache = p_this->p_libvlc->p_module_bank->pp_loaded_cache =
|
|
|
|
malloc( i_cache * sizeof(void *) );
|
|
|
|
+#endif /* 0 */
|
|
|
|
|
|
|
|
#define LOAD_IMMEDIATE(a) \
|
|
|
|
if( fread( &a, sizeof(char), sizeof(a), file ) != sizeof(a) ) goto error
|
2008-06-09 18:55:43 -04:00
|
|
|
@@ -1725,7 +1727,7 @@ static void CacheLoad( vlc_object_t *p_this )
|
2005-12-21 22:45:36 -05:00
|
|
|
} else a = 0; \
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
-
|
|
|
|
+#if 0
|
|
|
|
for( i = 0; i < i_cache; i++ )
|
2005-11-05 19:33:44 -05:00
|
|
|
{
|
2006-12-23 08:31:30 -05:00
|
|
|
uint16_t i_size;
|
2008-06-09 18:55:43 -04:00
|
|
|
@@ -1801,6 +1803,7 @@ static void CacheLoad( vlc_object_t *p_this )
|
2005-12-21 22:45:36 -05:00
|
|
|
p_this->p_libvlc->p_module_bank->i_loaded_cache = 0;
|
|
|
|
|
|
|
|
fclose( file );
|
|
|
|
+#endif /* 0 */
|
|
|
|
return;
|
|
|
|
}
|
2005-11-05 19:33:44 -05:00
|
|
|
|