Commit graph

60 commits

Author SHA1 Message Date
Sebastian Dröge
bbf800f17f Update for gstreamer bindings API changes 2020-04-02 20:29:18 +03:00
Sebastian Dröge
9202e8fddd tutorial: Update for Caps API changes 2020-03-07 00:56:35 +02:00
Sebastian Dröge
c25a3e13e3 tutorial: Port to once_cell::Lazy 2020-01-26 08:38:10 +00:00
Guillaume Desmottes
a6adc81eb4 tutorial: use GEnum derive 2020-01-13 09:31:05 +05:30
Tobias Morell
aa40eae581 tutorial: Add enum property to control output on progress bin
Fixes #84
2020-01-06 11:22:40 +02:00
Sebastian Dröge
9772adbfbf Fix various new clippy warnings from 1.40 2019-12-22 11:35:01 +02:00
François Laignel
bdadf25f5c Clippy pass 2019-12-19 20:44:00 +01:00
Sebastian Dröge
ccfb8246be Fix compilation after gstreamer-rs!383 2019-12-18 08:17:42 +02:00
Sebastian Dröge
916c382171 gst-plugin-tutorial: Update markdown for using lazy_static! to declare the debug category 2019-12-17 09:35:21 +02:00
Sebastian Dröge
5ca81246f1 gst-plugin-tutorial/tutorial1: Add missing description line to Cargo.toml in the markdown 2019-12-16 16:34:43 +02:00
Sebastian Dröge
064cc827a3 Fix video plugins build after gstreamer-rs!377
VideoInfo::from_caps() now returns a Result.
2019-12-15 10:53:11 +02:00
Philippe Normand
0f99994d9e Fix audio plugins build after gstreamer-rs!376
AudioInfo::from_caps() now returns a Result.
2019-12-14 15:26:20 +00:00
Sebastian Dröge
486e0e3420 tutorial/progressbin: Handle streams without duration correctly
The "percent-double" field in the message from the progressreport
element only exists if the overall duration of the stream is known.
2019-12-07 11:03:16 +02:00
Sebastian Dröge
9f75a1cecc Update for new BaseTransformImpl::set_caps() return type 2019-11-21 01:02:10 +02:00
Sebastian Dröge
1ae57967ae Move debug categories from an instance member to lazy_static
Simplifies the code a bit and less state to carry around.
2019-10-31 23:35:11 +01:00
Sebastian Dröge
074a82d8ad Various fixes for from_string() -> from_str(), to_string() vs. to_str()
The latter also does not allocate.
2019-10-04 11:47:50 +03:00
Abdul Rehman
60a19826e6 gst-plugin-tutorial: port-tutorial-documentation-to-new-register-API 2019-10-03 14:16:51 +00:00
Sebastian Dröge
b05fb902f9 Remove usage of subclassing feature, it's the default now 2019-09-09 10:45:06 +03:00
Sebastian Dröge
83cc8104a1 Fix or silence all remaining clippy warnings
Also ignore common errors we don't care about when running clippy and
make clippy errors fail the CI.
2019-09-07 10:42:07 +03:00
François Laignel
0e11ac87d3 Update for new {Value, StructureRef}::get signature
See https://github.com/gtk-rs/glib/pull/513
and https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/merge_requests/310
2019-08-13 15:29:28 +02:00
Sebastian Dröge
acc4b6a7e2 Update versions to 0.6.0 2019-07-07 13:20:15 +03:00
Guillaume Desmottes
53e530f7db port all plugins to new register API
Rank is now an enum rather than a u32
2019-06-04 14:35:10 +05:30
ahamedsajeer.15
dc45b7f8ac Add build.rs that provides a version number, release date and other details 2019-06-03 11:11:29 +00:00
ahamedsajeer.15
0f15b58453 gst-plugin-tutorial: Add markdown of tutorial from blog post and updating to latest version 2019-06-03 13:20:32 +03:00
Sebastian Dröge
fbee00caab Update for gstreamer gst_plugin_define! API changes 2019-05-27 20:31:39 +00:00
Sebastian Dröge
fda1233163 Update some dependencies 2019-05-24 13:33:51 +02:00
Sebastian Dröge
9bccc50add Update for gstreamer-rs API changes 2019-05-24 13:09:32 +02:00
Sebastian Dröge
075cb97b3f tutorial/sinesrc: Simplify query handling code 2019-04-24 12:11:51 +03:00
Sebastian Dröge
b6cd1cf6a9 tutorial: Add a Bin subclass example
This is a simple bin containing a progressreport element. The messages
of the progressreport are caught and printed to stdout instead of
forwarding to the application.
2019-04-24 12:07:08 +03:00
Sebastian Dröge
129f6a28b0 Update for gstreamer-rs/glib/etc API changes and add more explicit Some() 2019-04-16 10:10:16 +03:00
Sebastian Dröge
afe8e8e32b Update versions to 0.5.0 2019-02-22 13:27:47 +02:00
Sebastian Dröge
aa325ea98d Fix various clippy warnings 2019-02-21 20:12:09 +02:00
François Laignel
186ee43f8e Fix call parent from Ext trait
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/merge_requests/231
2019-02-13 11:53:46 +01:00
François Laignel
288596b7a2 Update transform_caps signature
See !223
2019-02-01 16:15:19 +01:00
Sebastian Dröge
9db02cb55e Fixes for gstreamer-rs API changes
Creating pad templates can return None now.
2019-01-29 17:33:06 +02:00
François Laignel
2a656a98b6 Update signatures further to gstreamer-base changes
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/merge_requests/216
2019-01-26 16:35:52 +01:00
Sebastian Dröge
4c618394b7 tutorial: Use chunks_exact/chunks_exact_mut instead of the normal chunks iterator
We always want as many items as given, no less. And this also enables
the compiler to optimize the code further.
2019-01-25 16:42:27 +02:00
François Laignel
e930133bdf Update for gstreamer-rs MR 200
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/merge_requests/200
2019-01-12 18:00:04 +01:00
Sebastian Dröge
f374d7fedf Remove unneeded ObjectSubclass::new() functions where not needed 2018-12-19 13:23:02 +02:00
Sebastian Dröge
fb741f26f3 Update for glib property API changes 2018-12-18 11:23:45 +02:00
Sebastian Dröge
6bd4931120 tutorial: Add identity element based directly on GstElement 2018-12-13 15:04:19 +02:00
Sebastian Dröge
10da397d9b tutorial: Improve documentation comments a bit 2018-12-13 12:02:38 +02:00
Sebastian Dröge
4ac6863eed Port tutorials plugin to new subclassing API 2018-11-30 17:18:53 +02:00
Sebastian Dröge
32265412f3 Change all links/mentions from gst-plugin-rs to gst-plugins-rs 2018-11-26 11:52:09 +01:00
Thijs Vermeir
cee861f341 use BoolError for plugin registration 2018-11-04 20:24:20 +01:00
Sebastian Dröge
97cc1c8458 Change all references from GitHub to freedesktop.org GitLab 2018-11-03 20:24:21 +02:00
Arun Raghavan
25501233ec Use FlowError instead of FlowReturn as error part of Result
This prevents the possibility of a Result that is an Err(Ok), which
would not be meaningful.
2018-10-29 19:15:38 +00:00
Sebastian Dröge
628f5099eb Run everything through latest rustfmt 2018-10-11 13:49:48 +03:00
Sebastian Dröge
f2deb2264b Fix various clippy warnings 2018-10-11 13:49:10 +03:00
Sebastian Dröge
046a0af6a1 Update versions to 0.4.0 2018-09-10 02:02:31 +03:00