[gnome-commander] tags: Only do something if HAVE_ID3 is defined



commit 02b99db06d47266fcfbcb79a3da06f5b55095023
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Fri Jun 4 23:26:00 2021 +0200

    tags: Only do something if HAVE_ID3 is defined

 src/tags/gnome-cmd-tags-taglib.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tags/gnome-cmd-tags-taglib.cc b/src/tags/gnome-cmd-tags-taglib.cc
index a302928d6..745813223 100644
--- a/src/tags/gnome-cmd-tags-taglib.cc
+++ b/src/tags/gnome-cmd-tags-taglib.cc
@@ -440,10 +440,10 @@ void gcmd_tags_taglib_init()
 
 void gcmd_tags_taglib_load_metadata(GnomeCmdFile *gnomeCmdFile)
 {
-    g_return_if_fail (gnomeCmdFile != NULL);
-    g_return_if_fail (gnomeCmdFile->gFileInfo != NULL);
-
 #ifdef HAVE_ID3
+    g_return_if_fail (gnomeCmdFile != nullptr);
+    g_return_if_fail (gnomeCmdFile->gFileInfo != nullptr);
+
     if (gnomeCmdFile->metadata && gnomeCmdFile->metadata->is_accessed(TAG_AUDIO))  return;
 
     if (!gnomeCmdFile->metadata)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]