mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Bug 2515 - (FFmpeg) Exporting to a disk with insufficient space gives messages that are not user-friendly or helpful
FFmpeg now gives the correct message. Bug not quite closed yet, as other exports are only part done.
This commit is contained in:
parent
6d1b3854e9
commit
0b633c564a
@ -39,6 +39,7 @@ function.
|
||||
#include "../Tags.h"
|
||||
#include "../Track.h"
|
||||
#include "../widgets/AudacityMessageBox.h"
|
||||
#include "../widgets/ErrorDialog.h"
|
||||
#include "../widgets/ProgressDialog.h"
|
||||
#include "../wxFileNameWrapper.h"
|
||||
|
||||
@ -953,10 +954,13 @@ bool ExportFFmpeg::EncodeAudioFrame(int16_t *pFrame, size_t frameSize)
|
||||
// Write the encoded audio frame to the output file.
|
||||
if ((ret = av_interleaved_write_frame(mEncFormatCtx.get(), &pkt)) < 0)
|
||||
{
|
||||
AudacityMessageBox(
|
||||
XO("FFmpeg : ERROR - Failed to write audio frame to file."),
|
||||
XO("FFmpeg Error"),
|
||||
wxOK|wxCENTER|wxICON_EXCLAMATION
|
||||
ShowErrorDialog(nullptr,
|
||||
XO("Warning"),
|
||||
XO("Audacity failed to write to a file.\n"
|
||||
"Perhaps the file is not writable or the disk is full.\n"
|
||||
"For tips on freeing up space, click the help button."
|
||||
),
|
||||
"Error:_Disk_full_or_not_writable"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user