CDTEXTFILE directifile should be relative to CUE file.
This commit is contained in:
@@ -331,8 +331,10 @@ parse_cuefile (_img_private_t *cd, const char *psz_cue_name)
|
|||||||
uint8_t *ptr;
|
uint8_t *ptr;
|
||||||
int size;
|
int size;
|
||||||
CdioDataSource_t *source;
|
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);
|
cdio_log (log_level, "%s line %d: can't open file `%s' for reading", psz_cue_name, i_line, psz_field);
|
||||||
goto err_exit;
|
goto err_exit;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,10 +50,8 @@ testnum="CD-Text binary parser"
|
|||||||
if test -f ${srcdir}/data/${fname}.bin ; then
|
if test -f ${srcdir}/data/${fname}.bin ; then
|
||||||
if test -f ${srcdir}/data/${fname}.cdt ; then
|
if test -f ${srcdir}/data/${fname}.cdt ; then
|
||||||
opts="--quiet --no-device-info --cue-file ${srcdir}/data/${fname}.cue --no-cddb"
|
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
|
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
||||||
RC=$?
|
RC=$?
|
||||||
rm ${srcdir}/${fname}.cdt
|
|
||||||
check_result $RC "cd-info CD-Text CUE test $testnum" "${CD_INFO} $opts"
|
check_result $RC "cd-info CD-Text CUE test $testnum" "${CD_INFO} $opts"
|
||||||
else
|
else
|
||||||
echo "Don't see CD-Text file ${srcdir}/data/${fname}.cdt. Test $testnum skipped."
|
echo "Don't see CD-Text file ${srcdir}/data/${fname}.cdt. Test $testnum skipped."
|
||||||
|
|||||||
Reference in New Issue
Block a user