]> git.sesse.net Git - vlc/commitdiff
libvlc_video: More line saving on error cases
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 13 Jun 2008 13:20:11 +0000 (15:20 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 13 Jun 2008 13:20:11 +0000 (15:20 +0200)
src/control/video.c

index af01ebf788e0e961c42912ef0d507362cba69f49..f0ff7e0b809b5b867bd6ef3f94d42841ad6565e8 100644 (file)
@@ -78,8 +78,7 @@ int libvlc_get_fullscreen( libvlc_media_player_t *p_mi,
     int i_ret;
 
     /* GetVout will raise the exception for us */
-    if( !p_vout )
-        return 0;
+    if( !p_vout ) return 0;
 
     i_ret = var_GetBool( p_vout, "fullscreen" );
 
@@ -112,10 +111,7 @@ libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, char *psz_filepath,
     input_thread_t *p_input_thread;
 
     /* GetVout will raise the exception for us */
-    if( !p_vout )
-    {
-        return;
-    }
+    if( !p_vout ) return;
 
     if( !psz_filepath )
     {