[rhythmbox] rhythmdb: skip replaygain properties in rhythmdb_entry_gather_metadata
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] rhythmdb: skip replaygain properties in rhythmdb_entry_gather_metadata
- Date: Wed, 17 Feb 2010 13:00:37 +0000 (UTC)
commit 2c273a43dc1ac8794a8307ec1fd568015e467cfd
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Feb 17 22:56:33 2010 +1000
rhythmdb: skip replaygain properties in rhythmdb_entry_gather_metadata
rhythmdb/rhythmdb.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/rhythmdb/rhythmdb.c b/rhythmdb/rhythmdb.c
index 10af0cf..cc774cd 100644
--- a/rhythmdb/rhythmdb.c
+++ b/rhythmdb/rhythmdb.c
@@ -4437,6 +4437,17 @@ rhythmdb_entry_gather_metadata (RhythmDB *db,
continue;
}
+ /* skip deprecated properties */
+ switch (prop) {
+ case RHYTHMDB_PROP_TRACK_GAIN:
+ case RHYTHMDB_PROP_TRACK_PEAK:
+ case RHYTHMDB_PROP_ALBUM_GAIN:
+ case RHYTHMDB_PROP_ALBUM_PEAK:
+ continue;
+ default:
+ break;
+ }
+
g_value_init (&value, value_type);
rhythmdb_entry_get (db, entry, prop, &value);
name = (char *)rhythmdb_nice_elt_name_from_propid (db, prop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]