gst/gstvalue.c: Avoid NULL dereference when trying to serialize flags containing invalid values.

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_serialize_flags):
Avoid NULL dereference when trying to serialize flags containing
invalid values.
This commit is contained in:
Michael Smith 2006-04-28 13:51:00 +00:00
parent 8a8227aacf
commit 530851afcf
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-04-28 Michael Smith <msmith@fluendo.com>
* gst/gstvalue.c: (gst_value_serialize_flags):
Avoid NULL dereference when trying to serialize flags containing
invalid values.
2006-04-28 Michael Smith <msmith@fluendo.com>
* plugins/elements/gsttypefindelement.c:

View file

@ -1928,9 +1928,10 @@ gst_value_serialize_flags (const GValue * value)
g_free (result);
result = tmp;
first = FALSE;
/* clear flag */
flags &= ~fl->value;
}
/* clear flag */
flags &= ~fl->value;
}
g_type_class_unref (klass);