[rhythmbox] metadata: explain why we report bogus track numbers sometimes



commit 22a9a0d071901571824515a4417c4584dd23b3af
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Feb 25 22:11:30 2011 +1000

    metadata: explain why we report bogus track numbers sometimes

 metadata/rb-metadata-dbus.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/metadata/rb-metadata-dbus.c b/metadata/rb-metadata-dbus.c
index 3e1921f..48c3224 100644
--- a/metadata/rb-metadata-dbus.c
+++ b/metadata/rb-metadata-dbus.c
@@ -98,6 +98,9 @@ rb_metadata_dbus_get_variant_builder (RBMetaData *md)
 		count++;
 	}
 
+	/* make sure there's at least one entry in the map so we can
+	 * build the response message.
+	 */
 	if (count == 0) {
 		g_variant_builder_add (b, "{iv}", RB_METADATA_FIELD_TRACK_NUMBER, g_variant_new_uint32 (0));
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]