rpms/rhythmbox/devel rhythmbox-0.10.1-fix-metadata-trailing-space.patch, NONE, 1.1 rhythmbox.spec, 1.139, 1.140

Bastien Nocera (hadess) fedora-extras-commits at redhat.com
Wed Oct 31 11:24:48 UTC 2007


Author: hadess

Update of /cvs/pkgs/rpms/rhythmbox/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14072

Modified Files:
	rhythmbox.spec 
Added Files:
	rhythmbox-0.10.1-fix-metadata-trailing-space.patch 
Log Message:
* Wed Oct 31 2007 - Bastien Nocera <bnocera at redhat.com> - 0.11.2-13
- Add patch to fix problems with metadata loss when it has a space at the
  end of it (#357951)


rhythmbox-0.10.1-fix-metadata-trailing-space.patch:

--- NEW FILE rhythmbox-0.10.1-fix-metadata-trailing-space.patch ---
--- branches/RHYTHMBOX-0_10/metadata/rb-metadata-gst.c	2007/04/21 13:16:42	5054
+++ branches/RHYTHMBOX-0_10/metadata/rb-metadata-gst.c	2007/06/03 02:20:08	5146
@@ -665,7 +665,6 @@
 		 * and then remove leading and trailing whitespace.
 		 */
 		char *str;
-		const char *old_str;
 
 		str = g_value_dup_string (newval);
 
@@ -680,15 +679,20 @@
 
 		/* Check whether we have a shorter duplicate tag,
 		 * Doesn't work with non-normalised UTF-8 strings */
-		old_str = g_value_get_string (val);
-		if (old_str != NULL
-		    && g_utf8_strlen (old_str, -1) > g_utf8_strlen (str, -1)) {
-			if (g_str_has_prefix (old_str, str) != FALSE) {
-				rb_debug ("Got shorter duplicate tag");
-				g_free (str);
-				g_value_unset (newval);
-				g_free (newval);
-				return;
+		val = g_hash_table_lookup (md->priv->metadata,
+					   GINT_TO_POINTER (field));
+		if (val != NULL) {
+			const char *old_str;
+			old_str = g_value_get_string (val);
+			if (old_str != NULL
+			    && g_utf8_strlen (old_str, -1) > g_utf8_strlen (str, -1)) {
+				if (g_str_has_prefix (old_str, str) != FALSE) {
+					rb_debug ("Got shorter duplicate tag");
+					g_free (str);
+					g_value_unset (newval);
+					g_free (newval);
+					return;
+				}
 			}
 		}
 		g_value_take_string (newval, str);


Index: rhythmbox.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rhythmbox/devel/rhythmbox.spec,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -r1.139 -r1.140
--- rhythmbox.spec	29 Oct 2007 13:39:37 -0000	1.139
+++ rhythmbox.spec	31 Oct 2007 11:24:13 -0000	1.140
@@ -3,7 +3,7 @@
 Name: rhythmbox
 Summary: Music Management Application 
 Version: 0.11.2
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: GPLv2+ and GFDL+
 Group: Applications/Multimedia
 URL: http://www.gnome.org/projects/rhythmbox/
@@ -58,6 +58,8 @@
 Patch6: rb-delete-ipod-tracks.patch
 # http://bugzilla.gnome.org/show_bug.cgi?id=484768
 Patch7: rb-use-newer-plparser-7.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=357951
+Patch8: rhythmbox-0.10.1-fix-metadata-trailing-space.patch
 
 %description
 Rhythmbox is an integrated music management application based on the powerful
@@ -102,7 +104,7 @@
 %patch6 -p0 -b .ipod-trash
 popd
 %patch7 -p0 -b .podcast
-
+%patch8 -p2 -b .trailing-space
 
 %build
 
@@ -214,6 +216,10 @@
 %{_libdir}/rhythmbox/plugins/upnp_coherence
 
 %changelog
+* Wed Oct 31 2007 - Bastien Nocera <bnocera at redhat.com> - 0.11.2-13
+- Add patch to fix problems with metadata loss when it has a space at the
+  end of it (#357951)
+
 * Mon Oct 29 2007 - Bastien Nocera <bnocera at redhat.com> - 0.11.2-12
 - Update patch for #242260, tooltips weren't working
 - Add patch to fix problems importing files with spaces in them (#291571)




More information about the fedora-extras-commits mailing list