summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2009-05-04 23:46:42 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2009-05-05 00:03:44 +0100
commit4eecc4e7adccfb9487e60a28a0697a6cdc882abc (patch)
tree6f64f0a4cbc601f7522916d0e2b6faa5790ec430 /scripts
parent243b32c00447e3efb1d176d80dfd79e73db5cfd9 (diff)
downloadclutter-gst-4eecc4e7adccfb9487e60a28a0697a6cdc882abc.tar.gz
[videosink] Guard the assembly shaders with NULL
The assembly shader arrays are supposed to be NULL-terminated arrays of pointers. My system was very kind and never crashed but this can't be expected in the wild where evil segfaults reign. Yes, this is embarassing.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pso2h.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pso2h.py b/scripts/pso2h.py
index 0ce063f..c60f85e 100755
--- a/scripts/pso2h.py
+++ b/scripts/pso2h.py
@@ -38,7 +38,8 @@ _template = """/*
static const char *%s[] =
{
-%s};
+%s NULL
+};
#endif
"""