warn on possibly broken discid, so app devs know about this

Original commit message from CVS:
warn on possibly broken discid, so app devs know about this
This commit is contained in:
Benjamin Otte 2003-03-30 02:13:37 +00:00
parent 757db2e087
commit a9464c5893

View file

@ -418,6 +418,14 @@ cdparanoia_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
g_value_set_enum (value, src->paranoia_mode); g_value_set_enum (value, src->paranoia_mode);
break; break;
case ARG_DISCID: case ARG_DISCID:
/**
* Due to possible autocorrections of start sectors of audio tracks on
* multisession cds, we can maybe not compute the correct discid.
* So issue a warning.
* See cdparanoia/interface/common-interface.c:FixupTOC
*/
if (src->d->cd_extra)
g_warning("DiscID on multisession discs might be broken. Use at own risk.");
g_value_set_string (value, src->discid); g_value_set_string (value, src->discid);
break; break;
default: default: