mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
check string for nullity
Original commit message from CVS: check string for nullity
This commit is contained in:
parent
0a602d04e0
commit
161bcaee42
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-03-30 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/gstcaps.c: (gst_caps_from_string_inplace):
|
||||||
|
make sure we don't get NULL strings
|
||||||
|
|
||||||
2004-03-30 Thomas Vander Stichele <thomas at apestaart dot org>
|
2004-03-30 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst/gstcaps.c:
|
* gst/gstcaps.c:
|
||||||
|
|
|
@ -1129,6 +1129,7 @@ gst_caps_from_string_inplace (GstCaps * caps, const gchar * string)
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
gchar *s;
|
gchar *s;
|
||||||
|
|
||||||
|
g_return_val_if_fail (string, FALSE);
|
||||||
if (strcmp ("ANY", string) == 0) {
|
if (strcmp ("ANY", string) == 0) {
|
||||||
caps->flags = GST_CAPS_FLAGS_ANY;
|
caps->flags = GST_CAPS_FLAGS_ANY;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue