warn on possibly broken discid, so app devs know about this
authorBenjamin Otte <otte@gnome.org>
Sun, 30 Mar 2003 02:13:37 +0000 (02:13 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 30 Mar 2003 02:13:37 +0000 (02:13 +0000)
Original commit message from CVS:
warn on possibly broken discid, so app devs know about this

ext/cdparanoia/gstcdparanoia.c

index 232db3fb856cbf0d1d240303dd30dde13ac9f50b..e4e4f7f421a8d334af72be0a9251faa0c4f64db7 100644 (file)
@@ -418,6 +418,14 @@ cdparanoia_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
       g_value_set_enum (value, src->paranoia_mode);
       break;
     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);
       break;
     default: