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
3c74efa3
Commit
3c74efa3
authored
Mar 04, 2022
by
Jean-Baptiste Mardelle
Browse files
Don't attempt to proxy mp3 clips with cover art
parent
9dd1aed1
Pipeline
#145082
passed with stage
in 5 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/doc/kdenlivedoc.cpp
View file @
3c74efa3
...
...
@@ -1228,6 +1228,17 @@ void KdenliveDoc::slotProxyCurrentItem(bool doProxy, QList<std::shared_ptr<Proje
if
((
t
==
ClipType
::
Video
||
t
==
ClipType
::
AV
||
t
==
ClipType
::
Unknown
||
t
==
ClipType
::
Image
||
t
==
ClipType
::
Playlist
||
t
==
ClipType
::
SlideShow
)
&&
item
->
statusReady
())
{
// Check for MP3 with cover art
if
(
t
==
ClipType
::
AV
&&
item
->
codec
(
false
)
==
QLatin1String
(
"mjpeg"
))
{
QString
frame_rate
=
item
->
videoCodecProperty
(
QStringLiteral
(
"frame_rate"
));
if
(
frame_rate
.
isEmpty
())
{
frame_rate
=
item
->
getProducerProperty
(
QLatin1String
(
"meta.media.frame_rate_num"
));
}
if
(
frame_rate
==
QLatin1String
(
"90000"
))
{
pCore
->
bin
()
->
doDisplayMessage
(
i18n
(
"Clip type does not support proxies"
),
KMessageWidget
::
Information
);
continue
;
}
}
if
((
doProxy
&&
!
force
&&
item
->
hasProxy
())
||
(
!
doProxy
&&
!
item
->
hasProxy
()
&&
pCore
->
projectItemModel
()
->
hasClip
(
item
->
AbstractProjectItem
::
clipId
())))
{
continue
;
...
...
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