Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
258
Issues
258
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
Kdenlive
Commits
9eac3901
Commit
9eac3901
authored
May 01, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MLT 6.20 avformat slideshows not recognized on onpening (convert to standard qimage)
parent
6f58f7fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
src/doc/documentchecker.cpp
src/doc/documentchecker.cpp
+13
-5
No files found.
src/doc/documentchecker.cpp
View file @
9eac3901
...
...
@@ -247,7 +247,7 @@ bool DocumentChecker::hasErrorInClips()
}
// Check for slideshows
bool
slideshow
=
original
.
contains
(
QStringLiteral
(
"/.all."
))
||
original
.
contains
(
QLatin1Char
(
'?'
))
||
original
.
contains
(
QLatin1Char
(
'%'
));
if
(
slideshow
&&
!
Xml
::
getXmlProperty
(
e
,
QStringLiteral
(
"ttl"
)).
isEmpty
(
))
{
if
(
slideshow
&&
Xml
::
hasXmlProperty
(
e
,
QStringLiteral
(
"ttl"
)
))
{
original
=
QFileInfo
(
original
).
absolutePath
();
}
if
(
!
QFile
::
exists
(
original
))
{
...
...
@@ -260,8 +260,16 @@ bool DocumentChecker::hasErrorInClips()
}
// Check for slideshows
bool
slideshow
=
resource
.
contains
(
QStringLiteral
(
"/.all."
))
||
resource
.
contains
(
QLatin1Char
(
'?'
))
||
resource
.
contains
(
QLatin1Char
(
'%'
));
if
((
service
==
QLatin1String
(
"qimage"
)
||
service
==
QLatin1String
(
"pixbuf"
))
&&
slideshow
)
{
resource
=
QFileInfo
(
resource
).
absolutePath
();
if
(
slideshow
)
{
if
(
service
==
QLatin1String
(
"qimage"
)
||
service
==
QLatin1String
(
"pixbuf"
))
{
resource
=
QFileInfo
(
resource
).
absolutePath
();
}
else
if
(
service
.
startsWith
(
QLatin1String
(
"avformat"
))
&&
Xml
::
hasXmlProperty
(
e
,
QStringLiteral
(
"ttl"
)))
{
// Fix MLT 6.20 avformat slideshows
if
(
service
.
startsWith
(
QLatin1String
(
"avformat"
)))
{
Xml
::
setXmlProperty
(
e
,
QStringLiteral
(
"mlt_service"
),
QStringLiteral
(
"qimage"
));
}
resource
=
QFileInfo
(
resource
).
absolutePath
();
}
}
if
(
!
QFile
::
exists
(
resource
))
{
// Missing clip found, make sure to omit timeline preview
...
...
@@ -427,7 +435,7 @@ bool DocumentChecker::hasErrorInClips()
QString
resource
=
service
==
QLatin1String
(
"timewarp"
)
?
Xml
::
getXmlProperty
(
e
,
QStringLiteral
(
"warp_resource"
))
:
Xml
::
getXmlProperty
(
e
,
QStringLiteral
(
"resource"
));
bool
slideshow
=
resource
.
contains
(
QStringLiteral
(
"/.all."
))
||
resource
.
contains
(
QLatin1Char
(
'?'
))
||
resource
.
contains
(
QLatin1Char
(
'%'
));
if
(
service
==
QLatin1String
(
"avformat"
)
||
service
==
QLatin1String
(
"avformat-novalidate"
)
||
service
==
QLatin1String
(
"framebuffer"
)
||
if
(
service
.
startsWith
(
QLatin1String
(
"avformat"
)
)
||
service
==
QLatin1String
(
"framebuffer"
)
||
service
==
QLatin1String
(
"timewarp"
))
{
clipType
=
i18n
(
"Video clip"
);
type
=
ClipType
::
AV
;
...
...
@@ -465,7 +473,7 @@ bool DocumentChecker::hasErrorInClips()
}
processedIds
<<
clipId
;
}
QTreeWidgetItem
*
item
=
new
QTreeWidgetItem
(
m_ui
.
treeWidget
,
QStringList
()
<<
clipType
);
item
->
setData
(
0
,
statusRole
,
CLIPMISSING
);
item
->
setData
(
0
,
clipTypeRole
,
(
int
)
type
);
...
...
Write
Preview
Markdown
is supported
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