From e2ef7a2a8ae317299051fbe10014f1b24ed5107e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 6 Jun 2009 02:35:35 +0100 Subject: 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. --- gst/id3tag/id3tag.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst/id3tag') 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); -- cgit v1.2.1