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
f717ff8d
Commit
f717ff8d
authored
Apr 09, 2021
by
Jean-Baptiste Mardelle
Browse files
FIx possible startup crash
parent
d765c0b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/monitor/glwidget.cpp
View file @
f717ff8d
...
...
@@ -644,6 +644,11 @@ void GLWidget::updateRulerHeight(int addedHeight)
resizeGL
(
width
(),
height
());
}
bool
GLWidget
::
isReady
()
const
{
return
m_consumer
!=
nullptr
;
}
void
GLWidget
::
requestSeek
(
int
position
)
{
m_consumer
->
set
(
"scrub_audio"
,
1
);
...
...
src/monitor/glwidget.h
View file @
f717ff8d
...
...
@@ -140,6 +140,8 @@ public:
void
purgeCache
();
/** @brief Show / hide monitor ruler */
void
switchRuler
(
bool
show
);
/** @brief Returns true if consumer is initialized */
bool
isReady
()
const
;
protected:
void
mouseReleaseEvent
(
QMouseEvent
*
event
)
override
;
...
...
src/monitor/monitor.cpp
View file @
f717ff8d
...
...
@@ -1421,6 +1421,9 @@ void Monitor::forceMonitorRefresh()
void
Monitor
::
refreshMonitorIfActive
(
bool
directUpdate
)
{
if
(
!
m_glMonitor
->
isReady
())
{
return
;
}
if
(
isActive
())
{
if
(
directUpdate
)
{
m_glMonitor
->
refresh
();
...
...
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