From e04254c23e3e18a5ca3fe3c0a0a17e1ee8109318 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Sat, 13 Jun 2009 09:48:09 +0200 Subject: [PATCH] Use the owned attribute for parameters to remove some custom code --- gstreamer-sharp/Adapter.custom | 8 -------- gstreamer-sharp/AppSrc.custom | 9 --------- gstreamer-sharp/Gstreamer.metadata | 4 ++-- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/gstreamer-sharp/Adapter.custom b/gstreamer-sharp/Adapter.custom index da49141f50..9cd27d8080 100644 --- a/gstreamer-sharp/Adapter.custom +++ b/gstreamer-sharp/Adapter.custom @@ -1,11 +1,3 @@ - [DllImport("libgstbase-0.10.dll")] - static extern void gst_adapter_push(IntPtr raw, IntPtr buf); - - public void Push(Gst.Buffer buf) { - gst_adapter_push(Handle, buf == null ? IntPtr.Zero : buf.OwnedHandle); - } - - [DllImport ("gstreamersharpglue-0.10.dll") ] static extern IntPtr gstsharp_gst_adapter_peek_buffer (IntPtr adapter, uint size); diff --git a/gstreamer-sharp/AppSrc.custom b/gstreamer-sharp/AppSrc.custom index 36fa1e8218..8d1cfdd97f 100644 --- a/gstreamer-sharp/AppSrc.custom +++ b/gstreamer-sharp/AppSrc.custom @@ -12,12 +12,3 @@ public AppSrc (string name) : base (IntPtr.Zero) { } public AppSrc () : this ( (string) null) { } - -[DllImport ("libgstapp-0.10.dll") ] -static extern int gst_app_src_push_buffer (IntPtr raw, IntPtr buffer); - -public Gst.FlowReturn PushBuffer (Gst.Buffer buffer) { - int raw_ret = gst_app_src_push_buffer (Handle, buffer == null ? IntPtr.Zero : buffer.OwnedHandle); - Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret; - return ret; -} diff --git a/gstreamer-sharp/Gstreamer.metadata b/gstreamer-sharp/Gstreamer.metadata index d0d994fed3..2a93ad50a7 100644 --- a/gstreamer-sharp/Gstreamer.metadata +++ b/gstreamer-sharp/Gstreamer.metadata @@ -991,7 +991,7 @@ out true - 1 + true 1 1 1 @@ -1135,7 +1135,7 @@ 1 1 1 - 1 + true NavigationCommand