]> git.sesse.net Git - vlc/blobdiff - src/video_output/vout_intf.c
Revert some errors in 859436564cd0b85e76b888a88205424ede9cb412 and 9630c00c6b310e1a82...
[vlc] / src / video_output / vout_intf.c
index f210f5b57a36c1da0d50d4a2a344ff291536234c..fcd8725ef2a617811bd44a1917f03854592fe260 100644 (file)
@@ -481,7 +481,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
     memset( &fmt_out, 0, sizeof(video_format_t) );
 
     var_Get( p_vout, "snapshot-path", &val );
-    if( !*val.psz_string )
+    if( val.psz_string && !*val.psz_string )
     {
         free( val.psz_string );
         val.psz_string = 0;