From c6a78e1b9e0cd1b87783b024f66ee440965053d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Tue, 11 Mar 2008 23:12:56 +0100 Subject: [PATCH] Use VLC_ENOMEM instead of VLC_EGENERIC. --- modules/demux/rawvid.c | 2 +- modules/demux/tta.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c index add4213e0b..775d72d56f 100644 --- a/modules/demux/rawvid.c +++ b/modules/demux/rawvid.c @@ -166,7 +166,7 @@ static int Open( vlc_object_t * p_this ) p_demux->pf_control = Control; p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) ); if( !p_sys ) - return VLC_EGENERIC; + return VLC_ENOMEM; p_sys->i_pcr = 1; diff --git a/modules/demux/tta.c b/modules/demux/tta.c index f2dd5d11df..22ef53985c 100644 --- a/modules/demux/tta.c +++ b/modules/demux/tta.c @@ -110,7 +110,7 @@ static int Open( vlc_object_t * p_this ) p_demux->pf_control = Control; p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) ); if( !p_sys ) - return VLC_EGENERIC; + return VLC_ENOMEM; /* Read the metadata */ es_format_Init( &fmt, AUDIO_ES, VLC_FOURCC( 'T', 'T', 'A', '1' ) ); @@ -130,7 +130,7 @@ static int Open( vlc_object_t * p_this ) if( !p_seektable ) { free( p_sys ); - return VLC_EGENERIC; + return VLC_ENOMEM; } stream_Read( p_demux->s, p_seektable, i_seektable_size ); @@ -139,7 +139,7 @@ static int Open( vlc_object_t * p_this ) { free( p_seektable ); free( p_sys ); - return VLC_EGENERIC; + return VLC_ENOMEM; } for( i = 0; i < p_sys->i_totalframes; i++ ) @@ -155,7 +155,7 @@ static int Open( vlc_object_t * p_this ) free( p_sys->pi_seektable ); free( p_seektable ); free( p_sys ); - return VLC_EGENERIC; + return VLC_ENOMEM; } memcpy( (uint8_t*)fmt.p_extra, p_header, 22 ); memcpy( (uint8_t*)fmt.p_extra+22, p_seektable, fmt.i_extra -22 ); -- 2.39.2