summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-06 02:35:35 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-06 02:35:35 +0100
commite2ef7a2a8ae317299051fbe10014f1b24ed5107e (patch)
tree14efb9bfa502f1cdc18c9977845d9ccfbb1f7ccc
parent75cc0245faa8c13b19f9802c3384b6eec33f0ed7 (diff)
downloadgst-plugins-bad-e2ef7a2a8ae317299051fbe10014f1b24ed5107e.tar.gz
gst-plugins-bad-e2ef7a2a8ae317299051fbe10014f1b24ed5107e.tar.bz2
gst-plugins-bad-e2ef7a2a8ae317299051fbe10014f1b24ed5107e.zip
id3mux: init genre field in ID3v1 tag to an invalid number
So that it is not interpreted as 'Blues' if no genre is to be written.
-rw-r--r--gst/id3tag/id3tag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/id3tag/id3tag.c b/gst/id3tag/id3tag.c
index 5c3673b3..dd7bb04f 100644
--- a/gst/id3tag/id3tag.c
+++ b/gst/id3tag/id3tag.c
@@ -1191,6 +1191,9 @@ id3_mux_render_v1_tag (GstTagMux * mux, GstTagList * taglist)
data[1] = 'A';
data[2] = 'G';
+ /* Genre #0 stands for 'Blues', so init genre field to an invalid number */
+ data[127] = 255;
+
for (i = 0; i < G_N_ELEMENTS (v1_funcs); i++) {
v1_funcs[i].func (taglist, v1_funcs[i].gst_tag, data + v1_funcs[i].offset,
v1_funcs[i].length, &wrote_tag);