Commit graph

29 commits

Author SHA1 Message Date
Sebastian Dröge
7b0efa7033 Add support for emitting GObject signals dynamically
This will be needed later to call the action signals of
playbin2 for example.

Also get the correct instance size of GClosure at runtime
instead of always taking the largest known one.
2009-04-07 09:12:31 +02:00
Sebastian Dröge
17739ad5de Move DynamicSignals into the Gst namespace to prevent conflicts 2009-04-05 13:11:02 +02:00
Sebastian Dröge
4d136c9de0 Don't generate bindings for the XML/binary registry implementations 2009-04-04 23:31:48 +02:00
Sebastian Dröge
5e8d19e2be Fix instanciation of GLib.SignalArgs subclasses from the BindingHelper and the samples 2009-04-04 16:53:59 +02:00
Sebastian Dröge
9fd93f9feb Don't override Gst.Object.Dispose()
We can't call gst_object_unref() directly as this will conflict
with the toggle-refs used in glib-sharp. It's also not required
to call gst_object_unref(), it's just a wrapper around g_object_unref()
with some debugging.
2009-04-04 14:31:25 +02:00
Sebastian Dröge
10b4f125d0 Fix dynamic signals on 64 bit architectures
sizeof(GClosure) is 32 on 64 bit
2009-04-04 14:28:19 +02:00
Sebastian Dröge
ba8f8562b5 First take at updating to 0.10.22 2009-04-04 14:18:34 +02:00
Sebastian Dröge
615b619bd0 Make everything compilable again 2009-04-04 13:33:40 +02:00
Khaled Mohammed
a6ca2de622 gstreamer-sharp/DynamicSignal.cs: Added support for objects derived from GLib.Opaque
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@65082 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-09-07 22:22:09 +00:00
Khaled Mohammed
60312ccf83 adding gstreamer-sharp/glue/buffer.c
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@65070 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-09-07 16:55:34 +00:00
Khaled Mohammed
196ad13ffb added missing files
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@65068 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-09-07 16:24:30 +00:00
Khaled Mohammed
2301711e91 Fixed sample/TypeFind.cs
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@64526 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-08-30 00:46:32 +00:00
Khaled Mohammed
610da9b1d9 Added Element.LinkMany and Element.UnlinkMany
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@64347 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-08-25 09:49:52 +00:00
Khaled Mohammed
9b5a54fe8d 2006/08/20 Khaled Mohammed (khaled.mohammed@gmail.com)
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@64117 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-08-20 22:37:48 +00:00
Khaled Mohammed
13873a6559 more tests and Dispose() in Gst.Object
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@63657 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-08-11 20:53:33 +00:00
Khaled Mohammed
8ad1c333e7 Fix of Refcount property in Gst.Object
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@63396 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-08-05 21:07:11 +00:00
Khaled Mohammed
0e15441c8c Updated DynamicSignal.cs and files plugins-base to use the new
DynamicSignal class.


git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@63336 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-08-04 04:00:43 +00:00
Aaron Bockover
73ed037fa4 2006-07-13 Aaron Bockover <aaron@abock.org>
* gstreamer-sharp/BindingHelper.cs: Static helper class to assist
    in making element bindings (delegate manipulation/invocation)

    * gstreamer-sharp/DynamicSignal.cs: Updated DynamicSignalArgs so they
    can more easily be derived

    * gstreamer-sharp/Makefile.am: Updated build

    * sample/HelloWorld.cs: More cleaning

    * sample/Makefile.am:
    * sample/TypeFind.cs: Added typefind sample

    * gstreamer-sharp.mdp: Updated MonoDevelop project

    * gstreamer-sharp/plugins-base/DecodeBin.cs: Signal support rewritten
    to use BindingHelper/DynamicSignal

    * gstreamer-sharp/plugins-base/TypeFindElement.cs: New typefind
    element wrapper using BindingHelper/DynamicSignal

    * gstreamer-sharp/Element.custom: Fixed property getter/setter methods
    and added indexer wrapper for property lookup for syntax convenience



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@62570 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-07-13 16:16:51 +00:00
Aaron Bockover
0c76171b89 2006-07-12 Aaron Bockover <aaron@abock.org>
* sample/HelloWorld.cs: Cleaned up, works with new dynamic signal stuff

    * gstreamer-sharp.mdp: Updated MonoDevelop project

    * gstreamer-sharp/glue/dynamicsignal.c:
    * gstreamer-sharp/DynamicSignal.cs: Added DynamicSignal support for
    runtime GObject signal binding

    * gstreamer-sharp/glue/Makefile.am:
    * gstreamer-sharp/Makefile.am: Updated build

    * gstreamer-sharp/Element.custom: Removed old DynamicSignal
    stuff and added pass-thru/proxy Connect/Disconnect methods on
    top of GLib.DynamicSignal

    * gstreamer-sharp/DynamicSignalHandlerGenerator.cs:
    * gstreamer-sharp/DynamicSignalMarshalHandler.cs: Removed

    * gstreamer-sharp/gstreamer-sharp.dll.config.in: Updated maps, removed
    old 0.8 maps



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@62542 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-07-12 22:47:30 +00:00
Aaron Bockover
448405d86a 2006-07-12 Aaron Bockover <aaron@abock.org>
* gstreamer-sharp.mds:
    * gstreamer-sharp.mdp: Updated MonoDevelo project/solution

    * source/gstreamer-sharp-source.xml: Cleaned up a bit

    * sample/DecodeBinTranscoder.cs: Updated to reflect renaming of
    Clock.GstSecond to Clock.Second, etc.

    * gstreamer-sharp/glue/clock.c: Added gstsharp_gst_clock_get_time_none
    and gstsharp_gst_clock_time_is_valid

    * gstreamer-sharp/Clock.custom: Added bindings for new clock glue
    and renamed GstNSecond to NSecond (and friends)



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@62535 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-07-12 21:49:32 +00:00
Khaled Mohammed
28b533f8ec Fixed a bug in Element.custom related to Custom Signal Handler
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@61978 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-06-23 06:14:13 +00:00
Khaled Mohammed
d09ded2065 Custom Signal Handler for Element.cs
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@61891 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-06-21 07:25:57 +00:00
Khaled Mohammed
5c14766d47 2006-06-04 Khaled Mohammed <khaled.mohammed@gmail.com>
* gstreamer-sharp/glue/Bin.c: Newly added. Added a function to
        return the offset of *children.

        * tests/ElementTest.cs: Newly added. Added two NUnit tests for
        Element class - one to test creation of elements and the other
        to test addition and deletion of Pads from elements. 



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@61443 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-06-04 16:49:35 +00:00
Michael Dominic K
6566359e35 2006-06-04 Michael Dominic K. <michaldominik@gmail.com>
* sample/DecodeBinTranscoder.cs: Fixing ambigious cast.

	* gstreamer-sharp/glue/clock.c:
	* gstreamer-sharp/Clock.custom: Changing the gint64 to guint64 and
	long to ulong respectively. The clocktime (GstClockTime) is measured
	in nanoseconds as unsigned long inside GStreamer. 
	This is introducing a small schizophrenia since some functions (such
	as queries, seeks) take signed long (-1 to mark infinity or error).
	This is the expected Gst behaviour.
	Just sticking silently to long (instead of ulong) will bork us 	sooner
	or later, especially for custom-build low level routines/elements.
	Comments welcome.



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@61438 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-06-04 13:11:24 +00:00
Aaron Bockover
8c72b3b631 2006-05-25 Aaron Bockover <aaron@abock.org>
* gstreamer-sharp/Gstreamer.metadata: Hide the Children property and
    implement own version in Bin.custom to return an Element [] instead of
    a GLib.List

    * gstreamer-sharp/Bin.custom: Implement Bin.Children

    * tests/BinTest.cs: wrote a test for Bin.Children



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@61115 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-05-25 15:57:02 +00:00
Aaron Bockover
b6b2fa29fb 2006-05-21 Aaron Bockover <aaron@abock.org>
* gstreamer-sharp/plugins-base/DecodeBin.cs: Added a quick binding for
    decodebin to test new-decoded-pad; probably is only a temporary solution

    * sample/DecodeBinTranscoder.cs: Added a small decodebin sample

    * sample/Makefile.am: Added build rules for decodebin sample

    * gstreamer-sharp.mdp: Updated MonoDevelop project

    * gstreamer-sharp/Makefile.am: Added plugins-base/DecodeBin.cs



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@60931 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-05-21 18:58:44 +00:00
Aaron Bockover
88b3b2c712 2006-05-20 Aaron Bockover <aaron@abock.org>
* autogen.sh: Fixed a left over configure.in to configure.ac

    * confiugre.ac: Added check foo for NUnit

    * gstreamer-sharp.mdp:
    * gstreamer-sharp.mds: Added MonoDevelop solution

    * source/Makefile.am: Cleaned and fixed

    * tests/ConsoleUi.cs:
    * tests/ApplicationTest.cs:
    * tests/BinTest.cs:
    * tests/Makefile.am: Added NUnit test framework and a few tests for
    Gst.Application and Gst.Bin

    * gstreamer-sharp/CommonTags.cs:
    * gstreamer-sharp/*.custom:
    * gstreamer-sharp/glue/*.c: Cleaned up

    * gstreamer-sharp/Application.cs: New application bindings; fixed
    to work properly with GStreamer 0.10

    * gstreamer-sharp/Version.cs: New Gst.Version class

    * gstreamer-sharp/Makefile.am: Added Version.cs

    * gstreamer-sharp/plugins-base/PlayBin.cs: Fixed and extended PlayBin
    element binding with new (but not all) properties

    * Makefile.am: Added tests



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@60902 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-05-20 22:35:40 +00:00
Aaron Bockover
67ba536cb1 Removed all the stupid GNU Arch dot files/dirs; worse than CVS; jeesh
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@60876 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-05-19 19:33:35 +00:00
Aaron Bockover
b94528f8e7 Initial import of the sleek new gstreamer-sharp, a massive WIP
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@60875 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-05-19 19:24:35 +00:00