]> git.sesse.net Git - vlc/blobdiff - src/video_output/snapshot.c
Stick to the file's coding convention.
[vlc] / src / video_output / snapshot.c
index 1b06aea3bac99b518b39db76df862d0a5ec7ff9e..0f2c93817574b013322e03f6b419fd33d4345590 100644 (file)
@@ -150,7 +150,9 @@ int vout_snapshot_SaveImage(char **name, int *sequential,
         char *prefix = NULL;
         if (cfg->prefix_fmt)
             prefix = str_format(object, cfg->prefix_fmt);
-        if (!prefix) {
+        if (prefix)
+            filename_sanitize(prefix);
+        else {
             prefix = strdup("vlcsnap-");
             if (!prefix)
                 goto error;