Commit 859d9e31 authored by Rocky Bernstein's avatar Rocky Bernstein

Compilation fix when libcddb is not available.

parent 24b06102
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment