mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-02 18:36:24 +00:00
fix(Call): saved videos/images/sounds avoid usage of : separator in filename (unsupported on windows) (close #115)
This commit is contained in:
parent
b2af83265a
commit
42d2a3033a
2 changed files with 5 additions and 5 deletions
|
|
@ -80,8 +80,8 @@ void CallModel::setRecordFile (shared_ptr<linphone::CallParams> &callParams) {
|
|||
callParams->setRecordFile(
|
||||
::Utils::appStringToCoreString(
|
||||
QStringLiteral("%1%2.mkv")
|
||||
.arg(CoreManager::getInstance()->getSettingsModel()->getSavedVideosFolder())
|
||||
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss"))
|
||||
.arg(CoreManager::getInstance()->getSettingsModel()->getSavedVideosFolder())
|
||||
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss"))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -197,7 +197,7 @@ void CallModel::rejectVideoRequest () {
|
|||
|
||||
void CallModel::takeSnapshot () {
|
||||
static QString oldName;
|
||||
QString newName = QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss") + ".jpg";
|
||||
QString newName = QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss") + ".jpg";
|
||||
|
||||
if (newName == oldName) {
|
||||
qWarning() << QStringLiteral("Unable to take snapshot. Wait one second.");
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ void ConferenceModel::startRecording () {
|
|||
coreManager->getCore()->startConferenceRecording(
|
||||
::Utils::appStringToCoreString(
|
||||
QStringLiteral("%1%2.mkv")
|
||||
.arg(coreManager->getSettingsModel()->getSavedVideosFolder())
|
||||
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss"))
|
||||
.arg(coreManager->getSettingsModel()->getSavedVideosFolder())
|
||||
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss"))
|
||||
)
|
||||
);
|
||||
mRecording = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue