openbsd-ports/x11/vlc/patches/patch-src_misc_modules_c
2005-12-22 03:45:36 +00:00

37 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_misc_modules_c,v 1.3 2005/12/22 03:45:36 jolan Exp $
--- src/misc/modules.c.orig Sun Dec 11 15:36:13 2005
+++ src/misc/modules.c Tue Dec 20 22:58:01 2005
@@ -1582,6 +1582,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;
@@ -1700,6 +1701,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
@@ -1716,7 +1718,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;
@@ -1792,6 +1794,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;
}