]> git.sesse.net Git - vlc/commitdiff
Compilation fix when libcddb is not available.
authorRocky Bernstein <rocky@videolan.org>
Sun, 10 Oct 2004 00:24:44 +0000 (00:24 +0000)
committerRocky Bernstein <rocky@videolan.org>
Sun, 10 Oct 2004 00:24:44 +0000 (00:24 +0000)
modules/access/cdda/info.c

index 0bf8086f83d2b8359e82f0bf5a2849ba968731e7..520c987b9ad4638b935b64d6fd6d500adee19e36 100644 (file)
@@ -456,7 +456,16 @@ CDDAFormatStr( const access_t *p_access, cdda_data_t *p_cdda,
           add_format_str_info(t->ext_data);
       } else goto not_special;
       break;
-#endif
+    case 's':
+      if (p_cdda->b_cddb_enabled) {
+        char psz_buffer[MSTRTIME_MAX_SIZE];
+        mtime_t i_duration = (p_cdda->lsn[i_track+1] - p_cdda->lsn[i_track]) 
+          / CDIO_CD_FRAMES_PER_SEC;
+        add_format_str_info(secstotimestr( psz_buffer, i_duration ) );
+      } else 
+       goto not_special;
+      break;
+#endif /*HAVE_LIBCDDB*/
 
     case 'M':
       add_format_str_info(mrl);
@@ -470,15 +479,6 @@ CDDAFormatStr( const access_t *p_access, cdda_data_t *p_cdda,
       add_format_num_info(p_cdda->i_tracks, "%d");
       break;
 
-    case 's':
-      if (p_cdda->b_cddb_enabled) {
-        char psz_buffer[MSTRTIME_MAX_SIZE];
-        mtime_t i_duration = (p_cdda->lsn[i_track+1] - p_cdda->lsn[i_track]) 
-          / CDIO_CD_FRAMES_PER_SEC;
-        add_format_str_info(secstotimestr( psz_buffer, i_duration ) );
-      } else goto not_special;
-      break;
-
     case 'T':
       add_format_num_info(i_track, "%02d");
       break;