mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
75cc0245fa
commit
e2ef7a2a8a
1 changed files with 3 additions and 0 deletions
|
@ -1191,6 +1191,9 @@ id3_mux_render_v1_tag (GstTagMux * mux, GstTagList * taglist)
|
||||||
data[1] = 'A';
|
data[1] = 'A';
|
||||||
data[2] = 'G';
|
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++) {
|
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].func (taglist, v1_funcs[i].gst_tag, data + v1_funcs[i].offset,
|
||||||
v1_funcs[i].length, &wrote_tag);
|
v1_funcs[i].length, &wrote_tag);
|
||||||
|
|
Loading…
Reference in a new issue