Skip to content
GitLab
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
f14fdfdd
Commit
f14fdfdd
authored
Sep 17, 2016
by
Jean-Baptiste Mardelle
Browse files
Automatically proxy playlist if enabled
BUG: 368802
parent
f5ff8112
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
f14fdfdd
...
...
@@ -1869,14 +1869,16 @@ void Bin::slotProducerReady(requestClipInfo info, ClipController *controller)
m_doc
->
watchFile
(
clip
->
url
());
}
if
(
m_doc
->
useProxy
())
{
if
(
t
==
AV
||
t
==
Video
||
t
==
Playlist
)
{
if
(
t
==
AV
||
t
==
Video
)
{
int
width
=
clip
->
getProducerIntProperty
(
QStringLiteral
(
"meta.media.width"
));
if
(
m_doc
->
autoGenerateProxy
(
width
))
{
// Start proxy
m_doc
->
slotProxyCurrentItem
(
true
,
QList
<
ProjectClip
*>
()
<<
clip
);
}
}
else
if
(
t
==
Image
&&
m_doc
->
autoGenerateImageProxy
(
clip
->
getProducerIntProperty
(
QStringLiteral
(
"meta.media.width"
))))
{
}
else
if
(
t
==
Playlist
)
{
// always proxy playlists
m_doc
->
slotProxyCurrentItem
(
true
,
QList
<
ProjectClip
*>
()
<<
clip
);
}
else
if
(
t
==
Image
&&
m_doc
->
autoGenerateImageProxy
(
clip
->
getProducerIntProperty
(
QStringLiteral
(
"meta.media.width"
))))
{
// Start proxy
m_doc
->
slotProxyCurrentItem
(
true
,
QList
<
ProjectClip
*>
()
<<
clip
);
}
...
...
@@ -3313,7 +3315,10 @@ void Bin::refreshProxySettings()
QList
<
ProjectClip
*>
toProxy
;
foreach
(
ProjectClip
*
clp
,
clipList
)
{
ClipType
t
=
clp
->
clipType
();
if
((
t
==
AV
||
t
==
Video
||
t
==
Playlist
)
if
(
t
==
Playlist
)
{
toProxy
<<
clp
;
continue
;
}
else
if
((
t
==
AV
||
t
==
Video
)
&&
m_doc
->
autoGenerateProxy
(
clp
->
getProducerIntProperty
(
QStringLiteral
(
"meta.media.width"
))))
{
// Start proxy
toProxy
<<
clp
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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