[vlmc-devel] commit: Clip: Check if there is a parent before checking for parent' s metatags. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Fri May 14 18:51:25 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu May 13 21:48:57 2010 +0200| [23fb2f98a0bba815235a469fee54aa08577de9a6] | committer: Hugo Beauzée-Luyssen 

Clip: Check if there is a parent before checking for parent's metatags.

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

 src/Media/Clip.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Media/Clip.cpp b/src/Media/Clip.cpp
index 5427d15..882d73a 100644
--- a/src/Media/Clip.cpp
+++ b/src/Media/Clip.cpp
@@ -140,7 +140,7 @@ Clip::matchMetaTag( const QString &tag ) const
 {
     if ( tag.length() == 0 )
         return true;
-    if ( m_parent->matchMetaTag( tag ) == true )
+    if ( m_parent && m_parent->matchMetaTag( tag ) == true )
         return true;
     QString metaTag;
     foreach ( metaTag, m_metaTags )



More information about the Vlmc-devel mailing list