[vlmc-devel] [PATCH 6/8] TrackWorkflow: Use insertMulti

yikei lu luyikei.qmltu at gmail.com
Fri May 13 11:52:24 CEST 2016


I thought it would be convenient if we want to inseart some images and
audio tracks in single Track.

> "which media would you use for this track?"
This is why I introduced Clip(Helper)::formats(). This will be used to
determine what TrackType should be used. Also in the future, it could
be also used to mute clips.

2016-05-13 18:14 GMT+09:00 Hugo Beauzée-Luyssen <hugo at beauzee.fr>:
> On 05/03/2016 07:24 AM, Yikai Lu wrote:
>>
>> More than one clip can be placed at a certain position.
>> ---
>>   src/Workflow/TrackWorkflow.cpp | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/Workflow/TrackWorkflow.cpp
>> b/src/Workflow/TrackWorkflow.cpp
>> index 295fc75..abf8736 100644
>> --- a/src/Workflow/TrackWorkflow.cpp
>> +++ b/src/Workflow/TrackWorkflow.cpp
>> @@ -102,7 +102,7 @@ void
>>   TrackWorkflow::addClip( ClipWorkflow* cw, qint64 start )
>>   {
>>       QWriteLocker    lock( m_clipsLock );
>> -    m_clips.insert( start, cw );
>> +    m_clips.insertMulti( start, cw );
>>       connect( cw, SIGNAL( effectAdded( EffectHelper*, qint64 ) ),
>>                this, SLOT( __effectAdded( EffectHelper*, qint64 ) ) );
>>       connect( cw, SIGNAL( effectMoved( EffectHelper*, qint64 ) ),
>> @@ -380,7 +380,7 @@ TrackWorkflow::moveClip( const QUuid& id, qint64
>> startingFrame )
>>           {
>>               ClipWorkflow* cw = it.value();
>>               m_clips.erase( it );
>> -            m_clips[startingFrame] = cw;
>> +            m_clips.insertMulti( startingFrame, cw );
>>               cw->requireResync();
>>               computeLength();
>>               emit clipMoved( this, cw->getClipHelper()->uuid(),
>> startingFrame );
>>
> I disagree here, a single track can't contain multiple media at the same
> position, which media would you use for this track?
> _______________________________________________
> Vlmc-devel mailing list
> Vlmc-devel at videolan.org
> https://mailman.videolan.org/listinfo/vlmc-devel


More information about the Vlmc-devel mailing list