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
b97adae7
Commit
b97adae7
authored
Oct 16, 2019
by
Jean-Baptiste Mardelle
Browse files
Add drop_max property on consumer
parent
76a1b105
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/glwidget.cpp
View file @
b97adae7
...
...
@@ -1326,8 +1326,10 @@ int GLWidget::reconfigure(bool reload)
m_consumer->set("audio_buffer", 512);
#endif
*/
m_consumer
->
set
(
"buffer"
,
25
);
m_consumer
->
set
(
"prefill"
,
1
);
int
fps
=
qRound
(
pCore
->
getCurrentProfile
()
->
profile
().
fps
());
m_consumer
->
set
(
"buffer"
,
qMax
(
25
,
fps
));
m_consumer
->
set
(
"prefill"
,
qMax
(
1
,
fps
/
25
));
m_consumer
->
set
(
"drop_max"
,
fps
/
4
);
m_consumer
->
set
(
"scrub_audio"
,
1
);
if
(
KdenliveSettings
::
monitor_gamma
()
==
0
)
{
m_consumer
->
set
(
"color_trc"
,
"iec61966_2_1"
);
...
...
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