[vlc-devel] commit: Clarification (the last case can't happend) (CID 174) ( Rémi Duraffort )

git version control git at videolan.org
Fri Oct 10 23:17:45 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Oct 10 23:14:51 2008 +0200| [a62d3071c57b8ed4f5af0f82e63d9c1f599bf18a] | committer: Rémi Duraffort 

Clarification (the last case can't happend) (CID 174)

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

 modules/control/rc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/control/rc.c b/modules/control/rc.c
index fd52996..5beeb01 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1711,6 +1711,9 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
     {
         psz_variable = "video-snapshot";
     }
+    else
+        /* This case can't happend */
+        return VLC_EGENERIC;
 
     if( newval.psz_string && *newval.psz_string )
     {
@@ -1726,7 +1729,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
             i_error = var_Set( p_vout, psz_variable, newval );
         }
     }
-    else  if( !strcmp( psz_cmd, "snapshot" ) )
+    else if( !strcmp( psz_cmd, "snapshot" ) )
     {
         vlc_value_t val;
         val.b_bool = true;




More information about the vlc-devel mailing list