diff options
author | Christopher Martin <christopher.martin@utoronto.ca> | 2009-05-10 21:30:56 +0100 |
---|---|---|
committer | Christopher Martin <christopher.martin@utoronto.ca> | 2009-05-10 21:30:56 +0100 |
commit | 817e40dd565b54786ae7034f6a38ce641e31dd64 (patch) | |
tree | 6e224a1b5a937aa2d4f4edf2aae03d0b6802612f /src | |
parent | cc36b63853e116978e76b0e54ad0480d77ff0981 (diff) | |
download | xine-lib-817e40dd565b54786ae7034f6a38ce641e31dd64.tar.gz xine-lib-817e40dd565b54786ae7034f6a38ce641e31dd64.tar.bz2 |
Further improve parsing of CDDB information
Use strchr instead of strrchr to allow text to contain "=".
--HG--
extra : transplant_source : l%29%15%0F%DFVV%08%B7%CF%FEb%E0v%22%18%FA%9Ap%8B
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_cdda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index baae34321..c1cfb3d67 100644 --- a/src/input/input_cdda.c +++ b/src/input/input_cdda.c @@ -1475,12 +1475,12 @@ static void _cdda_parse_cddb_info (cdda_input_plugin_t *this, char *buffer, char } } else if (sscanf (buffer, "DYEAR=%s", &buf[0]) == 1) { - char *pt = strrchr (buffer, '='); + char *pt = strchr (buffer, '='); if (pt && strlen (pt) == 5) this->cddb.disc_year = strdup (pt + 1); } else if(sscanf(buffer, "DGENRE=%s", &buf[0]) == 1) { - char *pt = strrchr(buffer, '='); + char *pt = strchr(buffer, '='); if (pt) this->cddb.disc_category = strdup (pt + 1); } |