Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
4cb9d2ef by wurstsalat at 2024-06-07T19:13:57+02:00
cfix: VoiceMessageRecorder: Fix merging audio files on Windows
File paths must be converted to use POSIX compatible slashes in order for
gstreamer
to be able to handle files correctly. This works cross-platform.
- - - - -
1 changed file:
- gajim/gtk/voice_message_recorder.py
Changes:
=====================================
gajim/gtk/voice_message_recorder.py
=====================================
@@ -446,12 +446,14 @@ def _file_merge_required(self) -> bool:
def _merge_opus_m4a_command(self) -> str:
log.info('Merging opus files started')
+
+ # Use as_posix() on file path to convert "\" to "/" on Windows
sources = ''
for i in range(1, self._output_file_counter + 1):
if i in self._output_files_invalid:
continue
source = ' ! '.join([
- f'filesrc location={self._file_path}.part{i}',
+ f'filesrc location={self._file_path.as_posix()}.part{i}',
'qtdemux',
'opusdec',
'c. '
@@ -465,7 +467,7 @@ def _merge_opus_m4a_command(self) -> str:
'audioresample',
'opusenc audio-type=voice',
'mp4mux ',
- f'filesink location={self._file_path} {sources}'
+ f'filesink location={self._file_path.as_posix()} {sources}'
])
return command
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4cb9d2efc8108e9318369fe246a6ad0958ea58a6
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4cb9d2efc8108e9318369fe246a6ad0958ea58a6
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]