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
b8d7393b
Commit
b8d7393b
authored
Jul 05, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't initialize a separate Factory on first start
parent
33873027
Pipeline
#4892
failed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
src/dialogs/wizard.cpp
src/dialogs/wizard.cpp
+6
-8
No files found.
src/dialogs/wizard.cpp
View file @
b8d7393b
...
...
@@ -384,9 +384,7 @@ void Wizard::slotUpdateCaptureParameters()
void
Wizard
::
checkMltComponents
()
{
m_brokenModule
=
false
;
std
::
unique_ptr
<
Mlt
::
Repository
>
repository
(
Mlt
::
Factory
::
init
());
if
(
!
repository
)
{
if
(
!
pCore
->
getMltRepository
())
{
m_errors
.
append
(
i18n
(
"<li>Cannot start MLT backend, check your installation</li>"
));
m_systemCheckIsOk
=
false
;
}
else
{
...
...
@@ -398,7 +396,7 @@ void Wizard::checkMltComponents()
m_systemCheckIsOk
=
false
;
}
// Retrieve the list of available transitions.
Mlt
::
Properties
*
producers
=
repository
->
producers
();
Mlt
::
Properties
*
producers
=
pCore
->
getMltRepository
()
->
producers
();
QStringList
producersItemList
;
producersItemList
.
reserve
(
producers
->
count
());
for
(
int
i
=
0
;
i
<
producers
->
count
();
++
i
)
{
...
...
@@ -407,7 +405,7 @@ void Wizard::checkMltComponents()
delete
producers
;
// Check that we have the frei0r effects installed
Mlt
::
Properties
*
filters
=
repository
->
filters
();
Mlt
::
Properties
*
filters
=
pCore
->
getMltRepository
()
->
filters
();
bool
hasFrei0r
=
false
;
QString
filterName
;
for
(
int
i
=
0
;
i
<
filters
->
count
();
++
i
)
{
...
...
@@ -444,18 +442,18 @@ void Wizard::checkMltComponents()
}
#endif
Mlt
::
Properties
*
consumers
=
repository
->
consumers
();
Mlt
::
Properties
*
consumers
=
pCore
->
getMltRepository
()
->
consumers
();
QStringList
consumersItemList
;
consumersItemList
.
reserve
(
consumers
->
count
());
for
(
int
i
=
0
;
i
<
consumers
->
count
();
++
i
)
{
consumersItemList
<<
consumers
->
get_name
(
i
);
}
delete
consumers
;
if
(
consumersItemList
.
contains
(
QStringLiteral
(
"sdl2"
)))
{
if
(
consumersItemList
.
contains
(
QStringLiteral
(
"sdl2
_audio
"
)))
{
// MLT >= 6.6.0 and SDL2 module
KdenliveSettings
::
setSdlAudioBackend
(
QStringLiteral
(
"sdl2_audio"
));
KdenliveSettings
::
setAudiobackend
(
QStringLiteral
(
"sdl2_audio"
));
}
else
if
(
consumersItemList
.
contains
(
QStringLiteral
(
"sdl"
)))
{
}
else
if
(
consumersItemList
.
contains
(
QStringLiteral
(
"sdl
_audio
"
)))
{
// MLT < 6.6.0
KdenliveSettings
::
setSdlAudioBackend
(
QStringLiteral
(
"sdl_audio"
));
KdenliveSettings
::
setAudiobackend
(
QStringLiteral
(
"sdl_audio"
));
...
...
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