[easytag] Fix compilation if Opus support is disabled



commit c830fcd737ac05fb8fc837f9ea931a96654d1614
Author: David King <amigadave amigadave com>
Date:   Fri Mar 27 14:44:11 2015 +0100

    Fix compilation if Opus support is disabled

 src/file.c        |    2 +-
 src/file_list.c   |    2 +-
 src/tag_area.c    |    4 ++--
 src/tags/vcedit.c |    6 ++++++
 4 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/file.c b/src/file.c
index b287652..cb61fca 100644
--- a/src/file.c
+++ b/src/file.c
@@ -1369,7 +1369,7 @@ ET_Save_File_Tag_To_HD (ET_File *ETFile, GError **error)
         case WAVPACK_TAG:
 #endif
 #ifndef ENABLE_OPUS
-        case WAVPACK_TAG:
+        case OPUS_TAG:
 #endif
         case UNKNOWN_TAG:
         default:
diff --git a/src/file_list.c b/src/file_list.c
index 6695231..3e72c3f 100644
--- a/src/file_list.c
+++ b/src/file_list.c
@@ -336,7 +336,7 @@ et_file_list_add (GList *file_list,
         case WAVPACK_TAG:
 #endif
 #ifndef ENABLE_OPUS
-        case WAVPACK_TAG:
+        case OPUS_TAG:
 #endif
         case UNKNOWN_TAG:
         default:
diff --git a/src/tag_area.c b/src/tag_area.c
index 81cbb63..9b6268f 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -2664,7 +2664,7 @@ et_tag_area_update_controls (EtTagArea *self,
         case WAVPACK_TAG:
 #endif
 #ifndef ENABLE_OPUS
-        case WAVPACK_TAG:
+        case OPUS_TAG:
 #endif
         case UNKNOWN_TAG:
         default:
@@ -3077,7 +3077,7 @@ et_tag_area_display_et_file (EtTagArea *self,
         case WAVPACK_TAG:
 #endif
 #ifndef ENABLE_OPUS
-        case WAVPACK_TAG:
+        case OPUS_TAG:
 #endif
         case UNKNOWN_TAG:
         default:
diff --git a/src/tags/vcedit.c b/src/tags/vcedit.c
index b42fed6..ba5443a 100644
--- a/src/tags/vcedit.c
+++ b/src/tags/vcedit.c
@@ -529,6 +529,9 @@ vcedit_open (EtOggState *state,
 #ifndef ENABLE_SPEEX
         case ET_OGG_KIND_SPEEX:
 #endif
+#ifndef ENABLE_OPUS
+        case ET_OGG_KIND_OPUS:
+#endif
         case ET_OGG_KIND_UNKNOWN:
         default:
             g_assert_not_reached ();
@@ -633,6 +636,9 @@ vcedit_open (EtOggState *state,
                             }
                             break;
 #endif
+#ifndef ENABLE_OPUS
+                        case ET_OGG_KIND_OPUS:
+#endif
                         case ET_OGG_KIND_UNKNOWN:
                         default:
                             g_assert_not_reached ();


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