mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-26 05:51:18 +02:00
8f997314b0
Decrypt, HIGH conversion, and container conversion wrote ffmpeg output directly under a real audio name in the final directory, so a process kill mid-conversion left a partial file that library scans listed as a corrupt track. Outputs now stream into a '.partial<ext>' sibling (invisible to scans, real trailing extension so ffmpeg still infers the muxer) and are fsynced and renamed into place only on success. Also fixes the delete-then-rename in the ffmpeg tag embed (a kill between the two lost the file entirely - now renames over the original) and flushes+fsyncs SAF output streams before staged documents are published.