Commit graph

88 commits

Author SHA1 Message Date
Thibault Saunier
c70e5494b3 Update GStreamer 2020-06-17 21:16:40 -04:00
Sebastian Dröge
a088475b9d Bind gst_buffer_new_wrapped() manually
The memory must be allocated with g_malloc() as we will free it again
later with g_free(), as such allocate and copy the array that is passed
in.
2020-02-18 15:12:52 +00:00
Sebastian Dröge
c5090bdd21 Declare GstVideoOverlayComposition/Rectangle as opaque type and subclasses of Gst.MiniObject
This changes the API.

Without this change all usage will cause memory corruption and simply
does not work.
2020-01-28 16:50:57 +02:00
Thibault Saunier
a7ac9ee4fb Fix gst_promise_new_with_change_func
For some reason bindinator doesn't properly detect that the `func`
passed in gst_promise_new_with_change_func is a closure and what the
destroy function is (because it is a constructor?)

Mark it manually.

From suggestion from Alex Dircksen: https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/issues/9#note_166633

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/issues/9
2020-01-15 12:22:18 +00:00
Aaron Boxer
38a0731461 build: on Windows, use MSVC format for gst*, glib and gobject dlls
Generated files were generated using 'ninja -C build update-code'
except for libgstfft, which had to be updated manually
(see issue #25).

Note: with these changes, building on MS Windows will require
the msvc compiler - mingw will no longer work.
2019-11-18 14:19:39 -05:00
Thibault Saunier
de2554e637 gst: Mark fields called '_padding' as padding in structures 2019-05-28 18:11:37 -04:00
Thibault Saunier
9f1fac402e Update GStreamer with latest master
List of files in sources/meson.build is now aphabetically ordered.
2019-02-25 13:36:36 -03:00
Thibault Saunier
6bada6f67d Generate bindings for the new GstWebRTC library 2018-07-03 10:03:27 -04:00
Thibault Saunier
741cb333df Update code with latest GIR fixes.
Hide the following method that were previously totally broken and
now are wrongly auto generated (and fail to build):

    gst_rtsp_message_parse_auth_credentials
    gst_audio_ring_buffer_prepare_read
2018-06-05 10:55:15 -04:00
Thibault Saunier
11215be945 Make GstSDPMessage an opaque structure
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=794483
2018-03-21 09:22:38 -03:00
Justin Kim
1bcec1ec3b Gst.Pipeline: Hide GetBus
Gst.Element has same method to return Gst.Bus
so Gst.Pipeline doesn't need to define again.

https://bugzilla.gnome.org/show_bug.cgi?id=793870
2018-03-13 10:18:33 -03:00
Thibault Saunier
bbe45ebd91 message: Name all constructors
And fix examples.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=793274
2018-03-13 10:16:12 -03:00
Thibault Saunier
94f4d85af3 event: Make sure all constructor have a proper name
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=793274
2018-03-13 10:04:35 -03:00
Thibault Saunier
de989e1800 caps: Make sure that the empty constructor build an Empty caps
Moving the NewAny variant at the end of the nodes in the API definition
file.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=793054
2018-03-13 09:28:01 -03:00
Thibault Saunier
f9044e93e1 Update to 1.13.90
* Hide new GstAudioAggregator for now (needs some work)
* Fix the GstAudioInfo.SetFormat API and its use in the samples (it was plain broken
  and fixes in the annotation fixed it)
2018-03-11 21:23:12 -03:00
Thibault Saunier
689e4892e0 Update for current master 2018-01-29 15:31:16 -03:00
Thibault Saunier
d74a92212f is-padding was renamed to padding in GtkSharp
This fits the expected name in other parts of the code.
2017-11-30 23:06:52 -03:00
Thibault Saunier
288b061843 Add ABI tests and fix related issues 2017-10-11 18:27:53 +02:00
Thibault Saunier
a7fd8d6cb5 Do not ever try to generate managed structures 2017-09-29 11:43:48 -03:00
Thibault Saunier
2f86ec02ed Fix GstTypeFind ABI 2017-09-29 11:42:39 -03:00
Thibault Saunier
083115dd57 Remove GParamSpec subclasses as they are not handled in the code generator 2017-09-28 21:54:03 -03:00
Thibault Saunier
1b96d74926 Fix GstIterator.master_cookie type
It is a pointer to a guint32
2017-09-28 17:44:46 -03:00
Thibault Saunier
b5beac1217 Make GstVideo/AudioInfo GLib.Opaque structures
So that we generate a ABI compatible structure and make it working.
Also this is the way we do it for almost all other structures of this
kind.

I first tried to keep having a managed structure that properly matches
the C structure ABI generating in the gtk-sharp generator Explicit structure
for the union as we do with non managed structures but this is not
possible and leads to the following assertion in mono:

    Type Gst.Video.VideoInfo/__ABI which has an [ExplicitLayout] attribute cannot have a reference field at the same offset as another field.

This sensibly changes the API but I bet noone will even notice.

https://bugzilla.gnome.org/show_bug.cgi?id=788133
2017-09-26 10:35:37 -03:00
Thibault Saunier
d759ec9310 Update to current master 2017-09-22 15:42:41 -03:00
Erlend Graff
3f9dcf7198 Make sure GstSample is declared as subclass of GstMiniObject 2017-09-22 15:42:41 -03:00
Thibault Saunier
e9181c6772 metadata: Remove unused overrides and mark padding fields in objects as such 2017-09-06 13:23:18 -03:00
Thibault Saunier
1b6c109ba3 metadata: Add some documentation about our overrides 2017-09-06 13:23:00 -03:00
Thibault Saunier
9c289eb563 Do not use glue anymore!
This is not needed anymore as ABI compatible structures are now generated
and used by the code generator.
2017-09-06 13:22:57 -03:00
Thibault Saunier
6027acd4cc Add a Global.TimeFomat function 2017-08-29 22:20:46 -03:00
Thibault Saunier
893169175d Generate bindings for GES if avalaible 2017-08-29 22:20:46 -03:00
Thibault Saunier
036ab199cd Fix some RTP methods array arguments 2017-08-29 22:20:46 -03:00
Thibault Saunier
33f2b0c9fb Workaround bindinate mistake in gst_element_factory_get_static_pad_templates return type 2017-08-29 22:20:46 -03:00
Thibault Saunier
b37b5a2b92 Hide the class methods we override. 2017-08-28 16:43:39 -03:00
Thibault Saunier
4e14927373 Mark reserved fields as padding 2017-08-28 16:43:32 -03:00
Thibault Saunier
55f7297653 Force type of Gst.SECOND and Gst.MSECOND
Latest bindinator doesn't seem to be able to handle GstClockTimeDiff

Something to investigate later
2017-08-28 15:29:33 -03:00
Thibault Saunier
a55090f1ed Handle new duplicated methods for 1.12 2017-08-28 15:29:33 -03:00
Stephan Sundermann
4af160f4ae metadata: Fix move node expressions into custom classes (bgo#761326)
XPath matching seems to have changed somewhere between mono 3.2.3 and
4.x. This patch makes sure that all Global object tags are properly
visited when moving methods from the global class into custom ones.
2016-04-27 15:59:04 +02:00
Stephan Sundermann
9556b05947 VideoOverlay: Fix issues on 32 bits 2015-05-28 16:00:04 +02:00
Stephan Sundermann
5b386f21fb Application: Fix Init(args) and InitCheck(args)
Fixes #739069
2014-10-24 00:53:37 +02:00
Stephan Sundermann
9cc14f9579 Object: Make flags writeable 2014-09-18 15:05:45 +02:00
Stephan Sundermann
20a3d2a22d Pad: Fix ownership
https://bugzilla.gnome.org/show_bug.cgi?id=736852
2014-09-18 15:05:45 +02:00
Stephan Sundermann
13842d707d arrays: Fix byte arrays 2014-08-13 02:57:00 +02:00
Stephan Sundermann
8e8f890424 TagList: Fix Value passing 2014-08-07 17:15:29 +02:00
Stephan Sundermann
dba0f53b37 Buffer: Fix byte[] methods 2014-08-06 15:19:16 +02:00
Stephan Sundermann
6d80e4208a Add bindings for class struct methods 2014-08-06 00:55:58 +02:00
Stephan Sundermann
480da892fe constants: Add CLOCK_TIME_NONE 2014-08-01 15:31:36 +02:00
Stephan Sundermann
e90703356d Ignore constness 2014-07-27 00:06:14 +02:00
Stephan Sundermann
5b16f87f4b Fix some warnings 2014-07-26 23:26:54 +02:00
Stephan Sundermann
e53f0d0eed Various fixes 2014-07-22 00:36:22 +02:00
Stephan Sundermann
b1f6e5bbe2 Fix compilation errors 2014-07-20 03:32:48 +02:00