gst/avi/gstavimux.c: Don't segfault on string typed tags being NULL. Fixes #560155.

Original commit message from CVS:
* gst/avi/gstavimux.c:
Don't segfault on string typed tags being NULL. Fixes #560155.
This commit is contained in:
Stefan Kost 2008-11-11 10:06:01 +00:00
parent e8a21443f1
commit 15649903aa
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-11-11 Stefan Kost <ensonic@users.sf.net>
* gst/avi/gstavimux.c:
Don't segfault on string typed tags being NULL. Fixes #560155.
2008-11-10 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
* gst/matroska/matroska-mux.c: (aac_codec_data_to_codec_id),

View file

@ -930,7 +930,7 @@ gst_avi_mux_write_tag (const GstTagList * list, const gchar * tag,
for (n = 0; rifftags[n].fcc != 0; n++) {
if (!strcmp (rifftags[n].tag, tag) &&
gst_tag_list_get_string (list, tag, &str)) {
gst_tag_list_get_string (list, tag, &str) && str) {
len = strlen (str);
plen = len + 1;
if (plen & 1)