mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-05 23:19:08 +02:00
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rdrenderer.cpp'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
312fc90929
commit
c16ed24e75
@ -21780,3 +21780,5 @@
|
|||||||
* Cleaned up compile warnings in 'lib/rdinstancelock.cpp'.
|
* Cleaned up compile warnings in 'lib/rdinstancelock.cpp'.
|
||||||
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Cleaned up compile warnings in 'lib/rdkernelgpio.cpp'.
|
* Cleaned up compile warnings in 'lib/rdkernelgpio.cpp'.
|
||||||
|
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Cleaned up compile warnings in 'lib/rdrenderer.cpp'.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Render a Rivendell log to a single audio object.
|
// Render a Rivendell log to a single audio object.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2017-2020 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2017-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -183,7 +183,7 @@ bool __RDRenderLogLine::GetCutFile(const QString &cutname,int start_pt,
|
|||||||
char tempdir[PATH_MAX];
|
char tempdir[PATH_MAX];
|
||||||
|
|
||||||
strncpy(tempdir,(RDTempDirectory::basePath()+"/rdrenderXXXXXX").toUtf8(),
|
strncpy(tempdir,(RDTempDirectory::basePath()+"/rdrenderXXXXXX").toUtf8(),
|
||||||
PATH_MAX);
|
PATH_MAX-1);
|
||||||
*dest_filename=QString(mkdtemp(tempdir))+"/"+cutname+".wav";
|
*dest_filename=QString(mkdtemp(tempdir))+"/"+cutname+".wav";
|
||||||
RDAudioExport *conv=new RDAudioExport();
|
RDAudioExport *conv=new RDAudioExport();
|
||||||
conv->setDestinationFile(*dest_filename);
|
conv->setDestinationFile(*dest_filename);
|
||||||
@ -274,7 +274,7 @@ bool RDRenderer::renderToFile(const QString &outfile,RDLogModel *model,
|
|||||||
// Get Temporary File
|
// Get Temporary File
|
||||||
//
|
//
|
||||||
strncpy(tempdir,(RDTempDirectory::basePath()+"/rdrenderXXXXXX").toUtf8(),
|
strncpy(tempdir,(RDTempDirectory::basePath()+"/rdrenderXXXXXX").toUtf8(),
|
||||||
PATH_MAX);
|
PATH_MAX-1);
|
||||||
temp_output_filename=QString(mkdtemp(tempdir))+"/log.wav";
|
temp_output_filename=QString(mkdtemp(tempdir))+"/log.wav";
|
||||||
ProgressMessage(tr("Using temporary file")+" \""+temp_output_filename+"\".");
|
ProgressMessage(tr("Using temporary file")+" \""+temp_output_filename+"\".");
|
||||||
|
|
||||||
@ -358,7 +358,7 @@ bool RDRenderer::renderToCart(unsigned cartnum,int cutnum,RDLogModel *model,
|
|||||||
//
|
//
|
||||||
strncpy(tempdir,
|
strncpy(tempdir,
|
||||||
(RDTempDirectory::basePath()+"/rdrenderXXXXXX").toUtf8().constData(),
|
(RDTempDirectory::basePath()+"/rdrenderXXXXXX").toUtf8().constData(),
|
||||||
PATH_MAX);
|
PATH_MAX-1);
|
||||||
temp_output_filename=QString(mkdtemp(tempdir))+"/log.wav";
|
temp_output_filename=QString(mkdtemp(tempdir))+"/log.wav";
|
||||||
ProgressMessage(tr("Using temporary file")+" \""+temp_output_filename+"\".");
|
ProgressMessage(tr("Using temporary file")+" \""+temp_output_filename+"\".");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user