Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
dd9cfe33
Commit
dd9cfe33
authored
Sep 20, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix proxy clips lost on opening project file with relative path
parent
c57414c4
Pipeline
#8045
passed with stage
in 20 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mltcontroller/clipcontroller.cpp
View file @
dd9cfe33
...
...
@@ -62,11 +62,14 @@ ClipController::ClipController(const QString &clipId, const std::shared_ptr<Mlt:
QString
proxy
=
m_properties
->
get
(
"kdenlive:proxy"
);
QString
path
=
m_properties
->
get
(
"resource"
);
if
(
proxy
.
length
()
>
2
)
{
if
(
QFileInfo
(
path
).
isRelative
())
{
path
.
prepend
(
pCore
->
currentDoc
()
->
documentRoot
());
m_properties
->
set
(
"resource"
,
path
.
toUtf8
().
constData
());
}
// This is a proxy producer, read original url from kdenlive property
path
=
m_properties
->
get
(
"kdenlive:originalurl"
);
if
(
QFileInfo
(
path
).
isRelative
())
{
path
.
prepend
(
pCore
->
currentDoc
()
->
documentRoot
());
m_properties
->
set
(
"resource"
,
path
.
toUtf8
().
constData
());
}
m_usesProxy
=
true
;
}
else
if
(
m_service
!=
QLatin1String
(
"color"
)
&&
m_service
!=
QLatin1String
(
"colour"
)
&&
!
path
.
isEmpty
()
&&
QFileInfo
(
path
).
isRelative
()
&&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment