Commit graph

25 commits

Author SHA1 Message Date
Sebastian Dröge
be3c378f28 Use Results instead of Options where they signal an error instead of just a missing value
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/216
2019-12-17 22:21:28 +02:00
Sebastian Dröge
3a8d05075d Switch everything from mem::uninitialized() to MaybeUninit or mem::zeroed()
And also fix a few cases where mem::uninitialized() was simply wrong to
use.
2019-07-11 17:56:50 +03:00
Sebastian Dröge
4513eb22c7 Remove unused subclassing configuration from toml files 2019-06-24 20:52:03 +03:00
Guillaume Desmottes
c774bd8114 base: add bindings for GstBaseParse
Fix #157
2019-06-01 13:04:12 +05:30
Sebastian Dröge
5c32a0d1d3 Update manual code and configuration for 1.16 2019-04-23 19:15:53 +03:00
François Laignel
7cb1dc9cb4 gstreamer-base: update signatures to Result<(), glib::BoolError>
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/175
2019-01-27 09:36:56 +00:00
Sebastian Dröge
ad24ab9638 Regenerate everything with latest gir 2019-01-21 22:00:48 +02:00
François Laignel
948fb2ae4b Replace XXXReturn with Result<XXXSuccess, XXXError>
... in function signatures.

These breaking changes aim at improving usability by allowing users
to take advantage of Rust error management features sur as `ok_or`,
`map_err`, `expect` and the `?` operator. See the `examples` and
`tutorials` to get an idea of the impacts.
2019-01-11 18:33:04 +01:00
Sebastian Dröge
5c93e134a7 Regenerate everything with new version of gir 2018-12-08 14:58:14 +02:00
Sebastian Dröge
8eb4b879fc Port Aggregator subclassing 2018-11-21 17:03:59 +02:00
Sebastian Dröge
2bc6efa893 Port AggregatorPad subclassing 2018-11-21 17:03:59 +02:00
Sebastian Dröge
411319198a Port BaseTransform subclassing 2018-11-21 17:03:59 +02:00
Sebastian Dröge
2f90961ef1 Port BaseSink subclassing 2018-11-21 16:14:06 +02:00
Sebastian Dröge
771defa377 Port BaseSrc subclassing 2018-11-21 16:14:06 +02:00
Sebastian Dröge
06d654760d Implement glib::SendUnique on Adapter
It can be safely sent between threads as long as all references are in
the same thread.
2018-11-10 13:27:37 +02:00
Sebastian Dröge
c7fa48984e Aggregator is only available from gstreamer-base since 1.14 2018-07-31 00:05:40 +03:00
Sebastian Dröge
5df360a983 Add bindings for aggregator and aggregagor pad 2018-07-30 12:55:41 +03:00
Sebastian Dröge
46d27e3e75 Regenerate everything with latest GIR 2018-04-23 20:45:15 +03:00
Sebastian Dröge
99d4fe0925 Update gstreamer-base 2018-03-19 10:32:07 +02:00
Sebastian Dröge
808ff293ec Regenerate everything with latest gir 2018-03-02 21:34:29 +02:00
Sebastian Dröge
917255de89 Add typefind helper bindings 2017-12-18 10:05:42 +02:00
Sebastian Dröge
c39c0c7264 Implement ClockTime as ClockTime(Option<u64>)
And also implement a FormatValue type that holds a value together with
its format to make usage of the positions/durations/seek positions/etc
more convenient and safe.

Fixes https://github.com/sdroege/gstreamer-rs/issues/3
2017-11-11 11:57:29 +01:00
Sebastian Dröge
fd8ffffaa7 Add comment about why FlowCombiner bindings are manually generated 2017-10-11 11:30:28 +03:00
fengalin
44130794f1 gstreamer-base: use g_boxed_copy/free for GstFlowCombiner
This avoids depending on gst_flow_combiner_ref/unref which were
introduced in gstreamer-1.12.1.

Fixes https://github.com/sdroege/gstreamer-rs/pull/40
2017-10-11 11:29:35 +03:00
Sebastian Dröge
160fd103c0 Add initial bindings for GStreamer base library
https://github.com/sdroege/gstreamer-rs/issues/7
2017-09-10 00:36:47 +03:00