[longomatch] Add bindings for the set source function



commit df7f3223f49687510d3f109db0c3f7ddad90a602
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat May 22 21:12:02 2010 +0200

    Add bindings for the set source function

 CesarPlayer/Capturer/GstCameraCapturer.cs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/CesarPlayer/Capturer/GstCameraCapturer.cs b/CesarPlayer/Capturer/GstCameraCapturer.cs
index 6abb483..62e9ef4 100644
--- a/CesarPlayer/Capturer/GstCameraCapturer.cs
+++ b/CesarPlayer/Capturer/GstCameraCapturer.cs
@@ -334,6 +334,17 @@ namespace LongoMatch.Video.Capturer {
 		}
 		
 		[DllImport("libcesarplayer.dll")]
+		static extern bool gst_camera_capturer_set_source(IntPtr raw, int type, out IntPtr error);
+
+		public bool SetSource(CapturerType type) {
+			IntPtr error = IntPtr.Zero;			
+			bool raw_ret = gst_camera_capturer_set_source(Handle, (int) type, out error);
+			if (error != IntPtr.Zero) throw new GLib.GException (error);
+			bool ret = raw_ret;
+			return ret;
+		}		
+		
+		[DllImport("libcesarplayer.dll")]
 		static extern IntPtr gst_camera_capturer_get_type();
 
 		public static new GLib.GType GType { 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]