CDTEXTFILE directifile should be relative to CUE file.

This commit is contained in:
R. Bernstein
2012-01-26 00:35:57 -05:00
parent 5224ff9556
commit bf40f778d1
2 changed files with 3 additions and 3 deletions

View File

@@ -331,8 +331,10 @@ parse_cuefile (_img_private_t *cd, const char *psz_cue_name)
uint8_t *ptr;
int size;
CdioDataSource_t *source;
const char *dirname = cdio_dirname(psz_cue_name);
const char *psz_filename = cdio_abspath (dirname, psz_field);
if(NULL == (source = cdio_stdio_new(psz_field))) {
if(NULL == (source = cdio_stdio_new(psz_filename))) {
cdio_log (log_level, "%s line %d: can't open file `%s' for reading", psz_cue_name, i_line, psz_field);
goto err_exit;
}

View File

@@ -50,10 +50,8 @@ testnum="CD-Text binary parser"
if test -f ${srcdir}/data/${fname}.bin ; then
if test -f ${srcdir}/data/${fname}.cdt ; then
opts="--quiet --no-device-info --cue-file ${srcdir}/data/${fname}.cue --no-cddb"
cp ${srcdir}/data/${fname}.cdt ${srcdir}/${fname}.cdt
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
RC=$?
rm ${srcdir}/${fname}.cdt
check_result $RC "cd-info CD-Text CUE test $testnum" "${CD_INFO} $opts"
else
echo "Don't see CD-Text file ${srcdir}/data/${fname}.cdt. Test $testnum skipped."