]> git.sesse.net Git - vlc/commitdiff
taglib.cpp: Don't put empty info in playlist for files with no tag
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 28 Oct 2006 14:43:51 +0000 (14:43 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 28 Oct 2006 14:43:51 +0000 (14:43 +0000)
modules/meta_engine/taglib.cpp

index 4cd597a8fb13ff35a0ffc75ac95559e2f5e1416e..6cf1693639f66af134c5148e6544ecb9653c96f9 100644 (file)
@@ -88,7 +88,7 @@ static int ReadMeta( vlc_object_t *p_this )
         if( !p_demux->p_private )
             p_demux->p_private = (void*)vlc_meta_New();
         TagLib::FileRef f( p_demux->psz_path );
-        if( !f.isNull() && f.tag() )
+        if( !f.isNull() && f.tag() && !f.tag()->isEmpty() )
         {
             TagLib::Tag *tag = f.tag();
             vlc_meta_t *p_meta = (vlc_meta_t *)(p_demux->p_private );