Commit graph

450 commits

Author SHA1 Message Date
Sebastian Dröge
1458658bec Change GLib.* to Gst.GLib.* and register managed GTypes with a different name prefix
This prevents all remaining conflicts between internal and external glib-sharp.
2009-08-09 09:58:50 +02:00
Sebastian Dröge
265cb43fa7 Fix test compilation 2009-08-08 07:41:47 +02:00
Sebastian Dröge
39f1f2b7ad Update code generator and glib-sharp diffs
These diffs contain our changes to gtk-sharp trunk
2009-08-05 17:42:12 +02:00
Sebastian Dröge
aa7bb8fa1c Use internal glib-sharp copy everywhere and make it work side-by-side with real glib-sharp
glib-sharp will only get a new release with the new API that we need for
3.0 in a year or something. Instead of waiting a year before we can release
something we now have our own internal copy of glib-sharp trunk that will
be dropped once glib-sharp 3.0 is released.

Everything is now compilable and working without any additional patches.
2009-08-05 16:57:20 +02:00
Sebastian Dröge
414fae657f Move internal glib-sharp to namespace Gst.GLib 2009-08-05 16:48:13 +02:00
Sebastian Dröge
923553d7a7 Update glib-sharp from SVN trunk 2009-08-05 16:47:30 +02:00
Sebastian Dröge
1841f75917 Update code generator from gtk-sharp trunk 2009-08-05 16:46:19 +02:00
Sebastian Dröge
a4e2955c7c Add copy of glib-sharp from trunk
This is for internal usage only and will be removed once
there's a working glib-sharp release.

This also contains the required patches from README.
2009-07-31 10:16:55 +02:00
Sebastian Dröge
92b2a3214b Update generator from latest Gtk# trunk 2009-07-31 10:11:12 +02:00
Sebastian Dröge
be4e1e2241 Use gmcs for compilation, we require C# 2.0 now
This allows us to use new features and Gtk# has switched too
some days ago.
2009-07-31 10:01:30 +02:00
Sebastian Dröge
b8c0efd290 Update to work with latest Gtk# trunk
We only need a single patch now that should be committed soon
to trunk.
2009-07-30 14:20:54 +02:00
Sebastian Dröge
234fcbc1e7 Hide gst_pad_get_parent_element() as it's useless for us 2009-06-23 13:40:30 +02:00
Sebastian Dröge
771741badb Make some clock methods protected 2009-06-23 13:39:00 +02:00
Sebastian Dröge
bb977f37f6 Adjust tests for new protected methods by implementing subclasses 2009-06-23 13:26:11 +02:00
Sebastian Dröge
58c9aeb8a6 Make some element methods protected as they should be 2009-06-23 13:21:06 +02:00
Sebastian Dröge
55c47c29ec Add unit test for basic Gst.Element subclasses
This implements a simple source and sink and sends 10 buffers from one
to another.
2009-06-21 12:21:32 +02:00
Sebastian Dröge
5414963019 Rename BaseSrc.Query to .SrcQuery to prevent conflict with Element.Query 2009-06-21 10:36:13 +02:00
Maarten Bosmans
6e81430276 Avoid some C# compiler warnings about name collisions in subclass members
There are three types of solution used: adding the new keyword to the member
in the subclass, renaming the subclass member to avoid name collision and
removing the subclass member if the functionality is the same.
2009-06-21 10:34:11 +02:00
Maarten Bosmans
c1280b5896 Update Gstreamer.metadata to avoid some warnings on fixup/generate 2009-06-21 10:32:31 +02:00
Maarten Bosmans
663d3e047d Replace custom Enumerable code with generator GstIterator bindings
The custom properties that return a IEnumerable are replaced by generated
properties that return an Iterator.  Most of the code in Iterator.cs has
moved to Iterator.custom to implement IEnumerable.
2009-06-21 10:29:24 +02:00
Sebastian Dröge
7613c99e54 Set pipeline to null state in the end and use the real NeedData event of appsrc 2009-06-21 10:28:05 +02:00
Sebastian Dröge
103aea2d7d Fix memory leak in appsrc example 2009-06-21 10:24:46 +02:00
Maarten Bosmans
7698ae8801 Add samples/AppSrc.cs
This sample started as a test case for a bug with Buffer.Data, but remains
useful as a example of how to use the AppSrc element.
2009-06-21 10:23:48 +02:00
Sebastian Dröge
d2fb19fd9d Run automake with -Wno-portability to silence even more warnings 2009-06-21 10:00:34 +02:00
Maarten Bosmans
ff24d7d310 Build system fixes
- Use automake --foreign to silence warnings about gnu extensions.
 - Add gstreamer-api.xml as prerequisite for gstreamer-sharp/*plugins/generated/%.cs
 - Avoid executing $(MAKE) -C {core,base}plugins multiple times when gstreamer-api.xml is changed.
 - Only generate xml for elements with changed metadata
2009-06-21 09:55:15 +02:00
Sebastian Dröge
055571f20c Remove the Data hashtables from MiniObject
We don't have any ways to store them in a persitant way anyway,
for example the content will disappear if the managed mini object
is unreffed and later the same native instance is used again in
managed code.
2009-06-20 15:22:43 +02:00
Sebastian Dröge
cc2aa83e67 Use parameter-less constructors for Bin/Pipeline 2009-06-20 11:41:28 +02:00
Sebastian Dröge
7eebc0c2bc Generate Bus.Post() code automatically 2009-06-20 11:40:42 +02:00
Sebastian Dröge
82f9687b7c Add parameter-less constructors for Bin/Pipeline 2009-06-20 11:35:35 +02:00
Maarten Bosmans
c123dd008a Add some tests that depend on nunit >= 2.4 functionality 2009-06-20 11:29:24 +02:00
Maarten Bosmans
1bf7205563 Add some tests that where lost in Refcount cleanup 2009-06-20 11:29:24 +02:00
Sebastian Dröge
89ffc66700 Add unit test for managed buffer generation and interaction 2009-06-18 09:17:28 +02:00
Sebastian Dröge
63b7bcabd8 Print test names on the terminal 2009-06-17 13:46:36 +02:00
Sebastian Dröge
1c1fe228b4 Don't forget to set the freefunc of buffers
Partially fixes bug #585551.
2009-06-17 13:36:53 +02:00
Sebastian Dröge
742ac92b7b Fix ownership of Gst.PadGetCapsFunction's return value 2009-06-17 13:36:02 +02:00
Sebastian Dröge
75430dc6b5 Enable tests that should run but fail 2009-06-17 12:16:53 +02:00
Maarten Bosmans
e2ff9bb9cb Use nunit-console from nunit instead of in-tree ConsoleUi.
And check for nunit >= v2.0 at configure time.
2009-06-17 12:12:52 +02:00
Maarten Bosmans
93bee322fb Some more cleanup 2009-06-17 12:10:20 +02:00
Maarten Bosmans
8e9831765a Fix source code formatting for all the tests 2009-06-17 12:10:19 +02:00
Maarten Bosmans
37b8bdd10d Make the test suite actually run
By removing the Application.Deinit calls
and disabling two test that cause problems.
2009-06-17 12:10:19 +02:00
Maarten Bosmans
14d7c20ce7 Adapt tests to new api 2009-06-17 12:10:00 +02:00
Maarten Bosmans
f100210c37 Remove Dispose() calls in each test 2009-06-17 12:10:00 +02:00
Maarten Bosmans
18682a3604 Remove all the Refcount tests
The refcount of GstObjects isn't public anymore
and shouldn't be tested for anyway.
2009-06-17 12:09:59 +02:00
Maarten Bosmans
e04254c23e Use the owned attribute for parameters to remove some custom code 2009-06-14 20:04:16 +02:00
Maarten Bosmans
e43e6c9763 More custom code removed by using owned="true" 2009-06-14 20:03:48 +02:00
Maarten Bosmans
896ddae3c5 Fix generator to use MiniObject.OwnedHandle for parameters with owned="true" 2009-06-12 22:15:40 +02:00
Sebastian Dröge
b3b018c916 AppSrc.PushBuffer() takes ownership of the buffer
Part of bug #585551.
2009-06-12 15:21:28 +02:00
Maarten Bosmans
e53329406a 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.
2009-06-09 10:42:21 +02:00
Maarten Bosmans
4285a61e46 Cleanup of GstBase - unnescessary properties removed 2009-06-09 10:39:56 +02:00
Sebastian Dröge
cd3bf3502c For signals without parameters use the generic SignalHandler instead of defining a lot of empty types 2009-06-09 10:27:49 +02:00