taglib: Remove use of deprecated String::isNull
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 26 Nov 2021 17:19:41 +0000 (18:19 +0100)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
(cherry picked from commit c404fdb24183031a419667639846edddca3401f8) (edited)
edited:
294cbdbaee0209bc88ca7bec9164da8da4ac44ef was merged before this patch

Gbp-Pq: Name 0047-taglib-Remove-use-of-deprecated-String-isNull.patch

modules/meta_engine/taglib.cpp

index d0ced96220745bbc168330caaca33c05fe5c49d3..0c0cebdae155888f50ef06d0b01c529da4d9f195 100644 (file)
@@ -602,7 +602,7 @@ static void ProcessAPICListFromId3v2( const ID3v2::FrameList &list,
 static void ReadMetaFromBasicTag(const Tag* tag, vlc_meta_t *dest)
 {
 #define SET( accessor, meta )                                                  \
-    if( !tag->accessor().isNull() && !tag->accessor().isEmpty() )              \
+    if( !tag->accessor().isEmpty() )                                           \
         vlc_meta_Set##meta( dest, tag->accessor().toCString(true) )
 #define SETINT( accessor, meta )                                               \
     if( tag->accessor() )                                                      \