openbsd-ports/x11/vlc/patches/patch-src_misc_modules_c
2006-12-23 13:31:30 +00:00

37 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_misc_modules_c,v 1.5 2006/12/23 13:31:31 jolan Exp $
--- src/misc/modules.c.orig Fri Dec 8 19:12:08 2006
+++ src/misc/modules.c Sat Dec 23 03:45:09 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++ )
{
uint16_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;
}