mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-03 05:21:57 +01:00
Transcoder: create output paths if they do not already exist
This commit is contained in:
parent
a6fef97cac
commit
83d961f808
@ -488,6 +488,10 @@ bool Transcoder::StartJob(const Job& job) {
|
|||||||
g_object_set(src, "location", job.input.toUtf8().constData(), nullptr);
|
g_object_set(src, "location", job.input.toUtf8().constData(), nullptr);
|
||||||
g_object_set(sink, "location", job.output.toUtf8().constData(), nullptr);
|
g_object_set(sink, "location", job.output.toUtf8().constData(), nullptr);
|
||||||
|
|
||||||
|
// Create target directory, if it does not exist
|
||||||
|
QFileInfo output_file_path(job.output);
|
||||||
|
output_file_path.dir().mkpath(".");
|
||||||
|
|
||||||
// Set callbacks
|
// Set callbacks
|
||||||
state->convert_element_ = convert;
|
state->convert_element_ = convert;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user