[vlmc-devel] Commands::Clip::Split : Set formats for a new clip

Yikai Lu git at videolan.org
Mon Aug 29 17:22:03 CEST 2016


vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Aug 27 20:18:22 2016 -0500| [171e76b51d6516c6db7a4140863c09d2e5c5858b] | committer: Yikai Lu

Commands::Clip::Split : Set formats for a new clip

> https://code.videolan.org/videolan/vlmc/commit/171e76b51d6516c6db7a4140863c09d2e5c5858b
---

 src/Commands/Commands.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Commands/Commands.cpp b/src/Commands/Commands.cpp
index 8bbeac8..62a3d2f 100644
--- a/src/Commands/Commands.cpp
+++ b/src/Commands/Commands.cpp
@@ -314,6 +314,7 @@ Commands::Clip::Split::Split( std::shared_ptr<SequenceWorkflow> const& workflow,
     }
     m_newClip = m_toSplit->media()->cut( newClipBegin - m_toSplit->begin(),
                                          m_toSplit->end() - m_toSplit->begin() );
+    m_newClip->setFormats( m_toSplit->formats() );
     m_oldEnd = m_toSplit->end();
     retranslate();
 }



More information about the Vlmc-devel mailing list