diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-06 02:35:35 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-06 02:35:35 +0100 |
commit | e2ef7a2a8ae317299051fbe10014f1b24ed5107e (patch) | |
tree | 14efb9bfa502f1cdc18c9977845d9ccfbb1f7ccc | |
parent | 75cc0245faa8c13b19f9802c3384b6eec33f0ed7 (diff) | |
download | gst-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.c | 3 |
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); |