[gnome-commander/gcmd-1-12] Don't use Taglib type if taglib is not available, closing #102



commit 8746eae6f8967763f2a485353d13d0232a14e13a
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Mon Apr 12 22:35:51 2021 +0200

    Don't use Taglib type if taglib is not available, closing #102

 NEWS                              | 1 +
 doc/C/releases.xml                | 3 +++
 src/tags/gnome-cmd-tags-taglib.cc | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index 60eddd60..9cb351de 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Bug fixes:
  * Fixed issue #97 ("Execute" not shown in file popup menu for executable files)
  * Fixed issue #98 ("Execute" doesn't work on files with space in filename)
  * Fixed issue #55 (Theme does not change in all tabs when applied)
+ * Fixed issue #102 (Compilation error when TagLib is not available)
 
 New or updated translations:
  * ...
diff --git a/doc/C/releases.xml b/doc/C/releases.xml
index b3004b36..2834d369 100644
--- a/doc/C/releases.xml
+++ b/doc/C/releases.xml
@@ -41,6 +41,9 @@
                         <listitem>
                             <para>Fixed issue #55 (Theme does not change in all tabs when applied)</para>
                         </listitem>
+                        <listitem>
+                            <para>Fixed issue #102 (Compilation error when TagLib is not available)</para>
+                        </listitem>
                     </itemizedlist>
                 </para>
                 <para>New features:</para>
diff --git a/src/tags/gnome-cmd-tags-taglib.cc b/src/tags/gnome-cmd-tags-taglib.cc
index a8e17a01..34e30041 100644
--- a/src/tags/gnome-cmd-tags-taglib.cc
+++ b/src/tags/gnome-cmd-tags-taglib.cc
@@ -47,10 +47,10 @@
 
 using namespace std;
 
+#ifdef HAVE_ID3
 bool getAudioProperties(GnomeCmdFileMetadata &metadata, const TagLib::AudioProperties *properties);
 bool readTags(GnomeCmdFileMetadata &metadata, const TagLib::Ogg::XiphComment *oggTag);
 
-#ifdef HAVE_ID3
 static DICT<GnomeCmdTag> id3v2tags(TAG_NONE);
 static DICT<GnomeCmdTag> oggtags(TAG_NONE);
 


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