]> git.sesse.net Git - vlc/blobdiff - modules/meta_engine/taglib.cpp
Add a function to get the Title and fallback to the name if the title is empty.
[vlc] / modules / meta_engine / taglib.cpp
index c5740aa068f066e6ade7b2e980c810f2384f4ef3..43ac6974601bcc17d14532159eae7902e7411f9c 100644 (file)
@@ -571,8 +571,7 @@ static int WriteMeta( vlc_object_t *p_this )
 
     // Saving all common fields
     // If the title is empty, use the name
-    psz_meta = input_item_GetTitle( p_item );
-    if( !psz_meta ) psz_meta = input_item_GetName( p_item );
+    psz_meta = input_item_GetTitleFbName( p_item );
     SET( Title, psz_meta );
     free( psz_meta );