From f10d1911638e74c469235f136b4d7444257c8d46 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Thu, 28 Sep 2023 21:18:37 +0200 Subject: [PATCH] utils/viewer: fix missing URI conversion when replacing file extension --- pynopegl-utils/pynopegl_utils/viewer/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pynopegl-utils/pynopegl_utils/viewer/__init__.py b/pynopegl-utils/pynopegl_utils/viewer/__init__.py index 5c73561dc..54c1c5c00 100644 --- a/pynopegl-utils/pynopegl_utils/viewer/__init__.py +++ b/pynopegl-utils/pynopegl_utils/viewer/__init__.py @@ -254,7 +254,8 @@ def _test_settings(self): f"`{filepath.name}` becomes `{new_filename}`." ) filepath = filepath.parent / new_filename - self._window.set_export_file(filepath.as_posix()) + filepath = QUrl.fromLocalFile(filepath.as_posix()).url() + self._window.set_export_file(filepath) # Check GIF framerate compatibility self._window.hide_export_warning()