From 7672946935ab669f4b39cce7e2be67dc98c21f64 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 6 Feb 2011 12:08:14 +0100 Subject: [PATCH] pbutils: Specify which string variables can be NULL Without this you can't pass None to the various methods/constructors --- gst/pbutils.defs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gst/pbutils.defs b/gst/pbutils.defs index 14fb9ec..76c7ac3 100644 --- a/gst/pbutils.defs +++ b/gst/pbutils.defs @@ -378,7 +378,7 @@ (c-name "gst_encoding_profile_set_name") (return-type "none") (parameters - '("const-gchar*" "name") + '("const-gchar*" "name" (null-ok) (default "NULL")) ) ) @@ -387,7 +387,7 @@ (c-name "gst_encoding_profile_set_description") (return-type "none") (parameters - '("const-gchar*" "description") + '("const-gchar*" "description" (null-ok) (default "NULL")) ) ) @@ -405,7 +405,7 @@ (c-name "gst_encoding_profile_set_preset") (return-type "none") (parameters - '("const-gchar*" "preset") + '("const-gchar*" "preset" (null-ok) (default "NULL")) ) ) @@ -414,7 +414,7 @@ (c-name "gst_encoding_profile_set_restriction") (return-type "none") (parameters - '("GstCaps*" "restriction") + '("GstCaps*" "restriction" (null-ok) (default "NULL")) ) ) @@ -454,7 +454,7 @@ (parameters '("const-gchar*" "targetname") '("const-gchar*" "profilename") - '("const-gchar*" "category") + '("const-gchar*" "category" (null-ok) (default "NULL")) ) ) @@ -487,10 +487,10 @@ (is-constructor-of "GstEncodingContainerProfile") (return-type "GstEncodingContainerProfile*") (parameters - '("const-gchar*" "name") - '("const-gchar*" "description") + '("const-gchar*" "name" (null-ok) (default "NULL")) + '("const-gchar*" "description" (null-ok) (default "NULL")) '("GstCaps*" "format") - '("const-gchar*" "preset") + '("const-gchar*" "preset"(null-ok) (default "NULL")) ) ) @@ -500,7 +500,7 @@ (return-type "GstEncodingVideoProfile*") (parameters '("GstCaps*" "format") - '("const-gchar*" "preset") + '("const-gchar*" "preset" (null-ok) (default "NULL")) '("GstCaps*" "restriction") '("guint" "presence") ) @@ -512,7 +512,7 @@ (return-type "GstEncodingAudioProfile*") (parameters '("GstCaps*" "format") - '("const-gchar*" "preset") + '("const-gchar*" "preset" (null-ok) (default "NULL")) '("GstCaps*" "restriction") '("guint" "presence") ) -- 2.7.4