[vlc-devel] commit: Fix error values ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Dec 20 23:30:35 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Dec 20 11:39:44 2008 +0200| [5e340429d611d7ca9f6872bf5d205c3329e40939] | committer: Rémi Denis-Courmont 

Fix error values

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e340429d611d7ca9f6872bf5d205c3329e40939
---

 modules/codec/cmml/intf.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/codec/cmml/intf.c b/modules/codec/cmml/intf.c
index 7838a2d..06a3ac3 100644
--- a/modules/codec/cmml/intf.c
+++ b/modules/codec/cmml/intf.c
@@ -122,9 +122,7 @@ int OpenIntf ( vlc_object_t *p_this )
 
     p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
     if( p_intf->p_sys == NULL )
-    {
-        return( 1 );
-    };
+        return VLC_ENOMEM;
 
     p_intf->pf_run = RunIntf;
 
@@ -142,7 +140,7 @@ int OpenIntf ( vlc_object_t *p_this )
     var_AddCallback( p_intf->p_libvlc, "browse-follow-anchor",
                      FollowAnchorCallback, p_intf );
 
-    return( 0 );
+    return VLC_SUCCESS;
 }
 
 /*****************************************************************************




More information about the vlc-devel mailing list