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:
9ad6872
)
glslstage: add brackets around pointer dereference referencing an array
author
Matthew Waters
<matthew@centricular.com>
Thu, 15 Oct 2015 15:57:19 +0000
(
02:57
+1100)
committer
Matthew Waters
<matthew@centricular.com>
Thu, 15 Oct 2015 15:57:19 +0000
(
02:57
+1100)
While technically, i is always 0 and *vertex_sources[i++] is equivalant
to (*vertex_sources)[i++]. Be future-proof in the case of code
moves/changes/etc.
CID 1327406
gst-libs/gst/gl/gstglslstage.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglslstage.c
b/gst-libs/gst/gl/gstglslstage.c
index
ed5f4fd
..
8b2b928
100644
(file)
--- a/
gst-libs/gst/gl/gstglslstage.c
+++ b/
gst-libs/gst/gl/gstglslstage.c
@@
-419,7
+419,7
@@
_maybe_prepend_version (GstGLSLStage * stage, gchar ** shader_str,
i = 0;
if (add_header)
-
*vertex_sources
[i++] = es2_version_header;
+
(*vertex_sources)
[i++] = es2_version_header;
for (j = 0; j < stage->priv->n_strings; i++, j++)
(*vertex_sources)[i] = shader_str[j];