openbsd-ports/x11/vlc/patches/patch-src_misc_modules_c
2006-11-03 15:15:07 +00:00

37 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_misc_modules_c,v 1.4 2006/11/03 15:15:07 jolan Exp $
--- src/misc/modules.c.orig Sat May 6 10:52:13 2006
+++ src/misc/modules.c Fri Oct 20 14:32:39 2006
@@ -1589,6 +1589,7 @@ static char * GetWindowsError( void )
*****************************************************************************/
static void CacheLoad( vlc_object_t *p_this )
{
+#if 0
char *psz_filename, *psz_homedir;
FILE *file;
int i, j, i_size, i_read;
@@ -1707,6 +1708,7 @@ static void CacheLoad( vlc_object_t *p_t
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
@@ -1723,7 +1725,7 @@ static void CacheLoad( vlc_object_t *p_t
} else a = 0; \
} while(0)
-
+#if 0
for( i = 0; i < i_cache; i++ )
{
int16_t i_size;
@@ -1799,6 +1801,7 @@ static void CacheLoad( vlc_object_t *p_t
p_this->p_libvlc->p_module_bank->i_loaded_cache = 0;
fclose( file );
+#endif /* 0 */
return;
}