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.
This commit is contained in:
Tim-Philipp Müller 2009-06-06 02:35:35 +01:00
parent 75cc0245fa
commit e2ef7a2a8a

View file

@ -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);