[vlmc-devel] commit: MediaContainer: Also load metatags and notes when available. ( Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Sat Mar 13 12:59:39 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Mar 13 12:59:20 2010 +0100| [76373e9a007588aa47bcdb183af915077dea34c3] | committer: Hugo Beauzee-Luyssen 

MediaContainer: Also load metatags and notes when available.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=76373e9a007588aa47bcdb183af915077dea34c3
---

 src/Library/MediaContainer.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/Library/MediaContainer.cpp b/src/Library/MediaContainer.cpp
index dc0641e..cea6a2a 100644
--- a/src/Library/MediaContainer.cpp
+++ b/src/Library/MediaContainer.cpp
@@ -226,6 +226,9 @@ MediaContainer::load( const QDomElement &clips, MediaContainer *parentMC )
                 addClip( c );
             }
         }
+        if ( metatags.isEmpty() == false )
+            c->setMetaTags( metatags.split( ',' ) );
+        c->setNotes( notes );
         QDomElement subClips = clip.firstChildElement( "subClips" );
         if ( subClips.isNull() == false )
             c->getChilds()->load( subClips, this );



More information about the Vlmc-devel mailing list