[vlc-devel] commit: rc: make sure return value is set ( Rafaël Carré )
git version control
git at videolan.org
Wed Dec 2 16:27:47 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Wed Dec 2 16:27:22 2009 +0100| [6d506eaba1ce7790d28628bfd9d8fdcb2214a9b8] | committer: Rafaël Carré
rc: make sure return value is set
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d506eaba1ce7790d28628bfd9d8fdcb2214a9b8
---
modules/control/rc.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/control/rc.c b/modules/control/rc.c
index 33d32ef..2baa832 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1591,7 +1591,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
playlist_CurrentInput( p_intf->p_sys->p_playlist );
vout_thread_t * p_vout;
const char * psz_variable = NULL;
- int i_error;
+ int i_error = VLC_SUCCESS;
if( !p_input )
return VLC_ENOOBJ;
@@ -1705,8 +1705,6 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
msg_rc( "+----[ end of %s ]", val_name.psz_string );
free( val_name.psz_string );
-
- i_error = VLC_SUCCESS;
}
vlc_object_release( p_vout );
return i_error;
More information about the vlc-devel
mailing list