Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_sequencer / sequencer_edit.c
index b24817f..a78b3ee 100644 (file)
@@ -3874,7 +3874,7 @@ static int sequencer_export_subtitles_invoke(bContext *C, wmOperator *op, const
                else
                        BLI_strncpy(filepath, BKE_main_blendfile_path(bmain), sizeof(filepath));
 
-               BLI_replace_extension(filepath, sizeof(filepath), ".srt");
+               BLI_path_extension_replace(filepath, sizeof(filepath), ".srt");
                RNA_string_set(op->ptr, "filepath", filepath);
        }
 
@@ -3899,7 +3899,7 @@ static int sequencer_export_subtitles_exec(bContext *C, wmOperator *op)
        }
 
        RNA_string_get(op->ptr, "filepath", filepath);
-       BLI_ensure_extension(filepath, sizeof(filepath), ".srt");
+       BLI_path_extension_ensure(filepath, sizeof(filepath), ".srt");
 
        /* Avoid File write exceptions */
        if (!BLI_exists(filepath)) {