~ubuntu-branches/ubuntu/gutsy/banshee/gutsy

« back to all changes in this revision

Viewing changes to debian/patches/04_dont_append_commas_on_broken_id3v2.patch

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers (RAOF)
  • Date: 2007-04-03 16:50:57 UTC
  • Revision ID: james.westby@ubuntu.com-20070403165057-24i4n4te5haykgj8
Tags: 0.12.0+dfsg-1ubuntu3
* 04_dont_append_commas_on_broken_id3v2
  + Patch from Gnome bugzilla (#410116)
    Work-around for importing broken ID3v2 tags which use null-terminated
    strings.  Prevents Banshee from adding ", " to all such files when they
    are imported.  Fixes LP: #99938

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -Nur banshee-0.12.0+dfsg/ext/taglib-sharp/TagLib/Id3v2/Frames/TextIdentificationFrame.cs banshee-0.12.0+dfsg.new/ext/taglib-sharp/TagLib/Id3v2/Frames/TextIdentificationFrame.cs
 
2
--- banshee-0.12.0+dfsg/ext/taglib-sharp/TagLib/Id3v2/Frames/TextIdentificationFrame.cs 2007-02-19 18:31:08.000000000 +1100
 
3
+++ banshee-0.12.0+dfsg.new/ext/taglib-sharp/TagLib/Id3v2/Frames/TextIdentificationFrame.cs     2007-04-03 15:59:52.000000000 +1000
 
4
@@ -117,6 +117,11 @@
 
5
          field_list = new StringList ();
 
6
          text_encoding = StringType.UTF8;
 
7
          ParseFields (FieldData (data, offset));
 
8
+
 
9
+         // Remove the last string if it's empty. (Workaround for defective
 
10
+         // nul terminated tags.)
 
11
+         if (field_list.Count != 0 && field_list [field_list.Count - 1] == "")
 
12
+            field_list.RemoveAt (field_list.Count - 1);
 
13
       }
 
14
    }
 
15