From e53329406a4efc5a6a408eda739761f817a6f162 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Tue, 9 Jun 2009 10:42:21 +0200 Subject: [PATCH] Avoid some warnings when parsing the xml. The warnings where mainly about usage of ellipsis type arguments. For most of the functions hidden by this patch there was already an alternative, for the params[] Caps constructor custom code is added. Fixes bug #584913. --- gstreamer-sharp/Caps.custom | 4 ++++ gstreamer-sharp/Gstreamer.metadata | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gstreamer-sharp/Caps.custom b/gstreamer-sharp/Caps.custom index 046a3d04ad..9c58b0040b 100644 --- a/gstreamer-sharp/Caps.custom +++ b/gstreamer-sharp/Caps.custom @@ -11,6 +11,10 @@ public Caps (Structure[] s) : this () { Append (o); } +public Caps (string mediaType, params object[] fields) : this () { + Append (new Structure(mediaType, fields)); +} + [DllImport ("gstreamersharpglue-0.10.dll") ] extern static uint gstsharp_gst_caps_get_refcount_offset (); diff --git a/gstreamer-sharp/Gstreamer.metadata b/gstreamer-sharp/Gstreamer.metadata index f83d3816de..8cc103c338 100644 --- a/gstreamer-sharp/Gstreamer.metadata +++ b/gstreamer-sharp/Gstreamer.metadata @@ -134,7 +134,9 @@ true true true + 1 1 + 1 method NewAny true @@ -431,7 +433,6 @@ - gpointer Method @@ -521,12 +522,14 @@ 1 1 - true + 1 AddDataProbe GstPadDataProbeCallback + 1 AddBufferProbe GstPadBufferProbeCallback + 1 AddEventProbe GstPadEventProbeCallback ref @@ -831,6 +834,7 @@ 1 1 + 1 1 true SetValue