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
c8fe98b3
Commit
c8fe98b3
authored
Oct 20, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix duplicated audio from previous commit.
Related to
#816
parent
1f927933
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/audio/audioStreamInfo.cpp
View file @
c8fe98b3
...
...
@@ -25,7 +25,7 @@ AudioStreamInfo::AudioStreamInfo(const std::shared_ptr<Mlt::Producer> &producer,
{
// Fetch audio streams
int
streams
=
producer
->
get_int
(
"meta.media.nb_streams"
);
if
(
playlist
)
{
if
(
playlist
&&
streams
==
0
)
{
// Playlist clips do not provide stream info
m_audioStreams
.
insert
(
0
,
i18n
(
"Audio"
));
}
...
...
src/mltcontroller/clipcontroller.cpp
View file @
c8fe98b3
...
...
@@ -262,7 +262,7 @@ void ClipController::getInfoForProducer()
m_clipType
=
ClipType
::
Unknown
;
}
if
(
audioIndex
>
-
1
||
m_clipType
==
ClipType
::
Playlist
)
{
m_audioInfo
=
std
::
make_unique
<
AudioStreamInfo
>
(
m_masterProducer
,
audioIndex
,
true
);
m_audioInfo
=
std
::
make_unique
<
AudioStreamInfo
>
(
m_masterProducer
,
audioIndex
,
m_clipType
==
ClipType
::
Playlist
);
// Load stream effects
for
(
int
stream
:
m_audioInfo
->
streams
().
keys
())
{
QString
streamEffect
=
m_properties
->
get
(
QString
(
"kdenlive:stream:%1"
).
arg
(
stream
).
toUtf8
().
constData
());
...
...
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