]> git.sesse.net Git - vlc/commitdiff
Fix error values
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 20 Dec 2008 09:39:44 +0000 (11:39 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 20 Dec 2008 22:30:27 +0000 (00:30 +0200)
modules/codec/cmml/intf.c

index 7838a2d4269219169ae70cd7c746ba7f2da8f41f..06a3ac3135b5c681962d753c593f7899b3aa109e 100644 (file)
@@ -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;
 }
 
 /*****************************************************************************