Commit graph

229 commits

Author SHA1 Message Date
Maarten Bosmans
f665c749b6 Use libgst*.dll in DllImport attribute, instead of gst*.dll
Nescessary for .NET, which doesn't prefix the library filename
with lib automatically.
2009-05-25 12:09:52 +02:00
Maarten Bosmans
e37e8d7c17 Add .dll to gstreamersharpglue DllImport
Nescessary for .NET compatibility, where .dll isn't added for libraries with a . in the filename.
2009-05-22 19:30:32 +02:00
Maarten Bosmans
5c772af9ce Replace all uint return values by guints in gstreamer-sharp/glue 2009-05-22 19:27:33 +02:00
Maarten Bosmans
888eb7d059 Fix compilation of the glue library on Windows 2009-05-22 19:24:09 +02:00
Maarten Bosmans
79a4ddd570 Replace unportable sed -i call with plain sed 2009-05-22 19:20:17 +02:00
Maarten Bosmans
d957255ae1 Add check for null before calling Structure.FreeNative 2009-05-22 19:01:26 +02:00
Sebastian Dröge
61523d6d5a Unref mini objects immediately instead of 50ms later and fix mini object type registration 2009-05-22 10:56:24 +02:00
Sebastian Dröge
15532cc8c6 Update the element bindings to use GTypeNameAttribute 2009-05-21 21:47:17 +02:00
Sebastian Dröge
9d71f4e833 Move explicit type registrations from Value.cs directly to Application.Init. 2009-05-21 21:38:23 +02:00
Sebastian Dröge
9b85d88450 As Gst.Date is a boxed type we need to implement IWrapper and a New method
This fixes boxing/deboxing from GLib.Value
2009-05-21 21:37:44 +02:00
Sebastian Dröge
c54dc8ce93 Update samples from http://code.google.com/p/cil-bindings
Also add a XvImageSink binding and add the GtkVideoPlayer sample
from the above place.
2009-05-21 20:57:26 +02:00
Sebastian Dröge
e028718bb3 Remove the managed miniobject instances from the hashtable before unreffing 2009-05-21 20:56:57 +02:00
Sebastian Dröge
cf9fd6ec9a Extend the code generator to handle GstMiniObject and implement Gst.MiniObject
Also fix indention everywhere and change code to use Gst.MiniObject.GetObject()
instead of GLib.Opaque.GetOpaque().

It's currently not possible to implement or use GInterfaces on mini objects
but apart from that this should be a great improvement, especially new
mini object classes can be defined in C# now.
2009-05-20 17:32:03 +02:00
Sebastian Dröge
4582abb4f3 Fork the Gtk# codegenerator for now
We unfortunately need to do this to properly generate bindings for
GstMiniObject...
2009-05-14 21:38:28 +02:00
Sebastian Dröge
e88f6d01b6 Update for latest version of the GType mapping patch 2009-05-14 21:37:19 +02:00
Sebastian Dröge
0c33d17f5a Fix MixerMessage method names 2009-05-14 21:37:09 +02:00
Sebastian Dröge
fdc99f178b Add Gst.Interfaces.Navigation bindings 2009-05-14 16:50:16 +02:00
Sebastian Dröge
ee6a9d8bad Make sure to return a ref'd Gst.Index from Gst.Element.OnGetIndex() 2009-05-14 15:56:57 +02:00
Sebastian Dröge
2573a84692 Add Gst.Interfaces.PropertyProbe bindings 2009-05-13 17:03:49 +02:00
Sebastian Dröge
500bd3d8cc Make PropertyInfo(IntPtr) ctor public 2009-05-13 16:46:57 +02:00
Sebastian Dröge
0164337fa8 Don't require Gtk# patch from bug #501685 2009-05-13 14:42:04 +02:00
Sebastian Dröge
1242478731 Add support for a GTypeName attribute to get correct native/managed type mappings
This requires yet another patch to Gtk# trunk, also update
the list of patches again.
2009-05-13 14:35:59 +02:00
Sebastian Dröge
a3032c0565 Add a method to retrieve the property info of a single property 2009-05-12 15:50:04 +02:00
Sebastian Dröge
1811d89b6e Add a method to convert an integer value into the Flags/EnumValues 2009-05-12 15:49:44 +02:00
Sebastian Dröge
817c83f7f0 Initialize the GLib.Value for the property to set 2009-05-12 15:32:15 +02:00
Sebastian Dröge
08ea583412 Add Enum/FlagsInfo to query a GEnum/GFlags type 2009-05-12 15:27:13 +02:00
Sebastian Dröge
761462b227 Also store the GType of the property in case there's no managed type for it 2009-05-12 15:26:50 +02:00
Sebastian Dröge
9c636a83be Add a Properties property to Gst.Object to get information about the GObject properties 2009-05-12 14:31:57 +02:00
Sebastian Dröge
75c1fe23d1 Add Gst.Interfaces.Tuner* bindings 2009-05-12 12:04:53 +02:00
Sebastian Dröge
801680234f Fix library name for the interfaces 2009-05-12 11:08:08 +02:00
Sebastian Dröge
c0a39e4503 Update API with the class struct of GstTunerNorm 2009-05-11 18:31:20 +02:00
Sebastian Dröge
213642904b Add Gst.Interfaces.VideoOrientation bindings 2009-05-11 18:27:10 +02:00
Sebastian Dröge
67fff79dd0 Add Gst.Interfaces.XOverlay bindings 2009-05-11 15:53:48 +02:00
Sebastian Dröge
3f51a3d9ac Reparse the API to get all interface class structs 2009-05-11 15:51:31 +02:00
Sebastian Dröge
0be28ab067 Add bindings for GstMixer and related types 2009-05-09 20:04:43 +02:00
Sebastian Dröge
4338c97169 Add a generic GstIterator wrapper and use that 2009-05-09 19:29:40 +02:00
Sebastian Dröge
5436b22683 Make the properties of the ColorBalanceChannel read-only 2009-05-09 10:27:29 +02:00
Sebastian Dröge
1947bc5cbb Add missing file 2009-05-08 17:24:26 +02:00
Sebastian Dröge
5395b35db8 Start binding the GstInterfaces library, ColorBalance* is finished already 2009-05-08 17:23:55 +02:00
Sebastian Dröge
5988e1ad39 Update API fixups for the latest protected-fields patch 2009-05-07 10:39:38 +02:00
Sebastian Dröge
ef48705792 Add some notes why we have a modified copy of URIHandlerAdapter.cs 2009-05-07 10:03:58 +02:00
Sebastian Dröge
a32102f3ff Move TypeFind/Index/Element register functions to their factory classes 2009-05-07 09:42:17 +02:00
Sebastian Dröge
533f9a16b5 Move plugin wrappers into seperate namespaces 2009-05-06 14:09:23 +02:00
Sebastian Dröge
890a6f31e3 Don't use FORTIFY_SOURCE 2009-05-06 13:57:56 +02:00
Sebastian Dröge
cbe55bb12f Add Gst.ImplementsInterface bindings 2009-05-06 12:47:37 +02:00
Sebastian Dröge
31797cf4e3 Fix Gst.Preset bindings
As C# interfaces don't allow a default implementation we
add a static Gst.PresetDefault class that provides static
methods for calling the default GstPreset method implementations.
2009-05-06 12:25:02 +02:00
Sebastian Dröge
292027a151 Add bindings for Gst.URIHandler
Unfortunately this requires us to work around Gtk# being unable
to handle static interface methods and Gtk# being unable to
allow us to override interface adapter code...
2009-05-04 12:27:25 +02:00
Sebastian Dröge
ea62e0d57a Fix Gst.TagSetter interface bindings 2009-05-04 11:04:42 +02:00
Sebastian Dröge
2ffddfe22c Fix Gst.ChildProxy bindings 2009-05-03 19:35:14 +02:00
Sebastian Dröge
649b16dd24 Remove the abstract flag of GstObject and friends as we might need to instantiate them
This will happen for example if we don't have a managed wrapper class
for a type.
2009-05-03 19:34:27 +02:00
Sebastian Dröge
433bcd9247 Fix Gst.Pipeline bindings 2009-05-01 17:21:13 +02:00
Sebastian Dröge
67f3b86d77 Add support for iterating the internal links of a pad 2009-05-01 17:11:18 +02:00
Sebastian Dröge
29f25c326d Fix Gst.Bin bindings and add bindings for the iterators 2009-05-01 17:08:07 +02:00
Sebastian Dröge
3c4bf5f4e3 Handle NULL GstIterator* correctly 2009-05-01 17:05:49 +02:00
Sebastian Dröge
d543e568df Change NewFromString() methods to FromString() in Caps/Structure for consistence 2009-05-01 13:46:24 +02:00
Sebastian Dröge
61f212b6f6 Fix some more GObject DllImports 2009-05-01 09:03:49 +02:00
Sebastian Dröge
ac87f20640 Fix value of Gst.FlowReturn.Ok 2009-04-30 21:48:14 +02:00
Sebastian Dröge
6287025a5f Fix GObject DllImport 2009-04-30 21:48:05 +02:00
Sebastian Dröge
14831575e6 Don't use the ThresholdType but the real type 2009-04-30 17:26:44 +02:00
Sebastian Dröge
51540e9f80 Fix indention and make Gst.Element.GetPadTemplates() a property 2009-04-30 17:21:13 +02:00
Sebastian Dröge
54a34ed67c Add initial support for setting/getting element class fields 2009-04-30 17:16:51 +02:00
Sebastian Dröge
7938de9740 Make Gst.ElementDetails an internal struct 2009-04-30 17:16:41 +02:00
Sebastian Dröge
9b81a43655 Actually override the Copy method of GLib.Opaque 2009-04-30 17:16:15 +02:00
Sebastian Dröge
8152e6b9d6 Remove unused DllImports 2009-04-30 17:16:00 +02:00
Sebastian Dröge
15ae032d0a Fix Gst.Element bindings
Still missing: Support for creating new element subclasses
and adding pad templates/setting details on them.
2009-04-30 16:54:39 +02:00
Sebastian Dröge
f536534214 Add convenience function to register Gst.Index types with the default registry 2009-04-30 15:40:17 +02:00
Sebastian Dröge
c42ef5f916 Fix registration of new Typefinders 2009-04-30 15:32:30 +02:00
Sebastian Dröge
a92f4036a6 Fix the Gst.Index* bindings 2009-04-30 15:13:31 +02:00
Sebastian Dröge
d627d1580c Fix Gst.TypeFind bindings 2009-04-30 13:10:15 +02:00
Sebastian Dröge
f3e78cd007 Fix IndexFactory/TypeFindFactory bindings 2009-04-30 09:39:46 +02:00
Sebastian Dröge
4a0b710106 Cleanup Gst.GhostPad bindings 2009-04-30 06:18:36 +02:00
Sebastian Dröge
28f51c6d08 Fix the Gst.Pad bindings 2009-04-28 21:03:44 +02:00
Sebastian Dröge
77cabd3ba8 Finish/fix Gst.Bus bindings 2009-04-27 13:42:57 +02:00
Sebastian Dröge
4c723b28da Cleanup some utility classes 2009-04-27 12:48:44 +02:00
Sebastian Dröge
48a5bce689 Fix the Gst.Task bindings
What still needs to be done is to add a way to set
a custom lock to the task, currently a newly created
task can only get a lock by making it a pad task.
2009-04-27 12:34:20 +02:00
Sebastian Dröge
658c39e785 Finish/fix the Gst.Plugin bindings and re-indent 2009-04-27 12:08:40 +02:00
Sebastian Dröge
f512f8c672 Remove the Gst.XML bindings for now
For them to be useful we need libxml2 bindings or some
magic to live without them.
2009-04-27 11:40:07 +02:00
Sebastian Dröge
a1de9b3aa6 Fix ownership of Gst.SystemClock.Obtain() return 2009-04-27 11:37:58 +02:00
Sebastian Dröge
35ed5308a6 Finish/fix the Gst.Clock and related bindings and update docs 2009-04-27 11:32:58 +02:00
Sebastian Dröge
2e264d16c0 Make Gst.Segment.SetNewsegmentFull an overload of SetNewsegment 2009-04-24 15:34:30 +02:00
Sebastian Dröge
0a003eb1a4 Properly change GST_PADDING values to the correct integer values 2009-04-24 15:33:55 +02:00
Sebastian Dröge
e0c535b795 Regenerate API with the new parser to get support for GObject virtual methods
This also gives us some support for class struct fields, etc.

Note: This requires an uncommitted patch to Gtk#
2009-04-24 14:56:40 +02:00
Sebastian Dröge
e1775ea341 Finish/fix the Gst.Object bindings
Also update docs and fix indention
2009-04-23 21:12:31 +02:00
Sebastian Dröge
5ddc0b00d7 Fix c&p error in method name 2009-04-23 16:49:21 +02:00
Sebastian Dröge
4eddb6d8a3 Add a helper function to get the number of an event type 2009-04-23 16:01:57 +02:00
Sebastian Dröge
48fc341b06 Ref/unref the Src field of Gst.Event/Message when setting it 2009-04-23 14:39:50 +02:00
Sebastian Dröge
6e766fc1d5 Finish/fix Gst.Event bindings 2009-04-23 14:32:08 +02:00
Sebastian Dröge
f53f22bb32 Add missing file 2009-04-23 13:42:05 +02:00
Sebastian Dröge
6db069b4e8 Fix/complete the Gst.Query bindings 2009-04-22 19:08:00 +02:00
Sebastian Dröge
303724d400 Use the copy-on-unref workaround for newly created Application/Element/Custom messages 2009-04-22 12:46:28 +02:00
Sebastian Dröge
53ff480060 Dispose some more GLib.Values after usage 2009-04-22 12:40:17 +02:00
Sebastian Dröge
5278dd6486 Dispose GLib.Values after usage to close a memory leak 2009-04-22 12:35:56 +02:00
Sebastian Dröge
f7de461101 Make sure that the strings passed to native functions are UTF8 2009-04-22 12:33:43 +02:00
Sebastian Dröge
e1ea52daaf Check the cached message structure for null before trying to create a copy 2009-04-22 11:55:52 +02:00
Sebastian Dröge
02e2d6e3fc Also use the copy-on-unref workaround for the message-owned Structure here instead of always copying 2009-04-22 11:54:49 +02:00
Sebastian Dröge
5a58c3dc24 Add some convenience overloads for some Message methods and make the parse methods more consistent 2009-04-22 08:07:55 +02:00
Sebastian Dröge
bdda44d849 Fix bindings of the tag merge functions 2009-04-21 19:27:35 +02:00
Sebastian Dröge
d835a93153 Call the _get_type() functions of some types on Init() to make sure they're registred by Gtk# 2009-04-21 19:27:05 +02:00
Sebastian Dröge
a23154fc2f Complete/fix bindings for Gst.Tag and Gst.TagList 2009-04-21 14:31:29 +02:00
Sebastian Dröge
a31f1e8180 Remove unused private field 2009-04-21 14:31:10 +02:00