[vlc-devel] commit: Use VLC_ENOMEM instead of VLC_EGENERIC. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Mar 11 23:13:03 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Mar 11 23:12:56 2008 +0100| [c6a78e1b9e0cd1b87783b024f66ee440965053d5]
Use VLC_ENOMEM instead of VLC_EGENERIC.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6a78e1b9e0cd1b87783b024f66ee440965053d5
---
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 add4213..775d72d 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 f2dd5d1..22ef539 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 );
More information about the vlc-devel
mailing list