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:
852851e
)
caps: use G_GNUC_NULL_TERMINATED for gst_caps_new_simple() and gst_caps_new_full()
author
Johan Boulé
<bohan.gnome@retropaganda.info>
Thu, 27 Oct 2011 13:56:24 +0000
(14:56 +0100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Thu, 27 Oct 2011 13:56:24 +0000
(14:56 +0100)
If you get warnings, use gst_caps_new_empty().
https://bugzilla.gnome.org/show_bug.cgi?id=343346
gst/gstcaps.h
patch
|
blob
|
history
diff --git
a/gst/gstcaps.h
b/gst/gstcaps.h
index
567f7b8
..
fb224f8
100644
(file)
--- a/
gst/gstcaps.h
+++ b/
gst/gstcaps.h
@@
-342,8
+342,9
@@
GstCaps * gst_caps_new_empty (void);
GstCaps * gst_caps_new_any (void);
GstCaps * gst_caps_new_simple (const char *media_type,
const char *fieldname,
- ...);
-GstCaps * gst_caps_new_full (GstStructure *struct1, ...);
+ ...) G_GNUC_NULL_TERMINATED;
+GstCaps * gst_caps_new_full (GstStructure *struct1,
+ ...) G_GNUC_NULL_TERMINATED;
GstCaps * gst_caps_new_full_valist (GstStructure *structure,
va_list var_args);