projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdf375
)
structure: remove superfluous guard against NULL
author
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Sat, 16 Jan 2010 19:41:29 +0000
(19:41 +0000)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Sat, 16 Jan 2010 19:44:35 +0000
(19:44 +0000)
All callers of this static function already check for NULL-ness
themselves, so no need to do it again (and if we do it, we should
probably do so before dereferencing the pointer for the first time).
gst/gststructure.c
patch
|
blob
|
history
diff --git
a/gst/gststructure.c
b/gst/gststructure.c
index
bb0ce56
..
fe4a92e
100644
(file)
--- a/
gst/gststructure.c
+++ b/
gst/gststructure.c
@@
-702,7
+702,6
@@
gst_structure_id_get_field (const GstStructure * structure, GQuark field_id)
guint i, len;
len = structure->fields->len;
- g_return_val_if_fail (structure != NULL, NULL);
for (i = 0; i < len; i++) {
field = GST_STRUCTURE_FIELD (structure, i);