Commit graph

3898 commits

Author SHA1 Message Date
Sebastian Dröge
3947010d5b ci: Update image for new GStreamer version
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
2024-12-20 19:30:26 +02:00
Sebastian Dröge
2149bcb93c meta: Add functions for working with meta API types directly
When working with allocation queries one only has the `glib::Type`.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
2024-12-20 19:30:26 +02:00
Jordan Petridis
a16eb859d8 ci: Update the base image for the windows dockerfile
Originally done in
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1591

Was dropped by accident before merging.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
2024-12-20 19:30:26 +02:00
Sebastian Dröge
48ce8536d0 gstreamer: pad: Remove unnecessary <1.14 compatibility code
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
2024-12-20 19:30:26 +02:00
Sebastian Dröge
a38c1df5d4 ci: Rebuild images to get new GStreamer
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
2024-12-20 19:30:26 +02:00
François Laignel
b457cb6250 gst: deprecate maybe_field() setters in favor of field_if_some()
Some builder convenience setters where added to work with `Option`al values.
This is the case for the `Pad` builder setter `maybe_name()` which was
introduced as part of [this MR].

Then [more convenience setters] were discussed and [it was decided] to use
`field_if_some()` instead of `maybe_field()`. Existing `maybe_field()`s were
kept for backward compatibility. This commit marks them as deprecated,
referring to the matching `field_if_some()`.

[this MR]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1255
[more convenience setters]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/499
[it was decided]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/499#note_2364820

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
2024-12-20 19:30:26 +02:00
Sebastian Dröge
23a2e2003b Update to thiserror 2
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1618>
2024-12-20 19:02:27 +02:00
Piotr Brzeziński
7184e67d80 log: Add as_ptr() for DebugMessage
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1615>
2024-12-13 14:03:26 +00:00
Piotr Brzeziński
45140ac971 log: Add as_ptr() and Hash to DebugCategory
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1613>
2024-12-11 17:25:37 +00:00
acpiccolo
1b5d7729c7 video: fix order of arguments for VideoFormat::from_masks()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1611>
2024-12-10 11:50:27 +00:00
Cheung Yik Pang
90dcfe7d84 video: fix VideoFrame(Ref)::plane_data() returning truncated buffer
Plane index and component index are not interchangeable for some video
formats, e.g., AV12. Each plane could contain more than one component.
Therefore, the height of each plane's buffer should be the aggregated height
of all its components.

Fixes #536

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1608>
2024-12-10 10:16:06 +00:00
Sebastian Dröge
09e5130e1e gstreamer: Allow dumping mutable byte slices too
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1598>
2024-11-21 11:33:22 +00:00
François Laignel
9596ef8338 gst: fix serde test for ObjectFlags::all()
GStreamer 1.24 added `GST_OBJECT_FLAG_CONSTRUCTED`, so `ObjectFlags::all()`
returns a different set depending on the version feature.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1597>
2024-11-21 11:17:17 +00:00
François Laignel
bbdfc07dc0 all: fix userdata mutability for FnMut callbacks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1587>
2024-11-08 15:54:43 +02:00
Sebastian Dröge
8df2662745 regenerate
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1587>
2024-11-08 15:54:05 +02:00
Sebastian Dröge
b019e4f0c3 Update gir
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1587>
2024-11-08 15:52:11 +02:00
Sebastian Dröge
d3593c86b6 Update CHANGELOG.md for 0.23.3
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1582>
2024-11-01 09:26:08 +02:00
Sebastian Dröge
15525c1dd1 Update versions to 0.23.3
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1582>
2024-11-01 09:23:30 +02:00
Sebastian Dröge
e92899b12d Update Cargo.lock
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1582>
2024-11-01 09:22:18 +02:00
Sebastian Dröge
186fbd7a73 examples: Update to cocoa 0.26
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1582>
2024-11-01 09:22:01 +02:00
Jerome Colle
11c632e580 app: fix appsink processing deadline setter
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1579>
2024-11-01 01:34:44 +00:00
Sebastian Dröge
a538e20581 analytics: Remove unnecessarily mutable references
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1574>
2024-10-22 16:22:44 +00:00
Sebastian Dröge
370737fa1a base: Add new Aggregator::push_src_event() method
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1574>
2024-10-22 16:22:44 +00:00
Sebastian Dröge
fa1b7e22e0 Regenerate with latest GStreamer gir files
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1574>
2024-10-22 16:22:43 +00:00
Sebastian Dröge
a279e02ca2 Update GStreamer gir files
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1574>
2024-10-22 16:22:43 +00:00
Sebastian Dröge
8b07e64b41 Update Gir.tomls
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1574>
2024-10-22 16:22:43 +00:00
Sebastian Dröge
0c1f795f73 ci: Update to cargo-c 0.10.5
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1572>
2024-10-22 14:34:08 +00:00
Sebastian Dröge
a8d694af16 ci: Update to meson 1.5.2
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1572>
2024-10-22 14:34:08 +00:00
Sebastian Dröge
8f226ba48f ci: Update to Rust 1.82
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1572>
2024-10-22 14:34:08 +00:00
Jordan Petridis
af3bb7558f ci: Specify the number of build jobs on windows
Followup to 7b51a7c77b

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1572>
2024-10-22 14:34:08 +00:00
Jordan Petridis
9e89c93ad5 ci: Use cargo nextest as the test runner and export junit reports
Close #519

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1572>
2024-10-22 14:34:08 +00:00
Sebastian Dröge
1deddbc6d3 iterator: Add a few more constructors for convenience
And implement `Vec` version more generically.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1568>
2024-10-21 18:26:18 +00:00
juan.adarve
43fbdd54a7 utils: streamproducer: update appsrc latency upon appsink latency event
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1564>
2024-10-21 14:37:50 +00:00
Viktor Chvatal
a360f11ac7 gstreamer: Fix binding to wrong C function in PadExtManual::proxy_query_caps
Fixes #533

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1557>
2024-10-17 13:02:11 +00:00
Arun Raghavan
c9f7a2a947 gstreamer: Add tests for pad probes taking and dropping data
This is quite similar to the HANDLED case, so reuse that code.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1552>
2024-09-28 16:29:28 +03:00
Arun Raghavan
9e6ec4c68d ci: Update CI image with current gstreamer commits
This is needed so that the fix from
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7493
can be used while testing recent changes to the pad probe API.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1552>
2024-09-28 16:29:23 +03:00
Sebastian Dröge
bbbcda32e8 Fix new 1.81 clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1551>
2024-09-28 10:43:02 +01:00
Sebastian Dröge
d6caf2d048 ci: Update to Rust 1.81
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1551>
2024-09-28 10:43:02 +01:00
Sebastian Dröge
41b938674d Update CHANGELOG.md for 0.23.2
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1549>
2024-09-28 12:15:07 +03:00
Sebastian Dröge
b66a639620 Update versions to 0.23.2
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1549>
2024-09-28 12:09:34 +03:00
Sebastian Dröge
2540917995 Update Cargo.lock
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1549>
2024-09-28 12:09:16 +03:00
Sebastian Dröge
0c1ea6abbf gstreamer: Remove manual #[link] attribute
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1544>
2024-09-28 11:49:23 +03:00
Sebastian Dröge
6a554744f5 Regenerate with latest gir
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1544>
2024-09-28 11:48:43 +03:00
Sebastian Dröge
e99c7f859b Update gir
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1544>
2024-09-28 11:48:17 +03:00
Daniel Stone
46af337b23 ci: Only use as many cores as we're supposed to
Instead of spawning 64 compiler instances on a 64-core machine that's
being shared with 7 other jobs.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1547>
2024-09-21 00:29:04 +02:00
L. E. Segovia
43b0f4ec71 Add workaround for linking against macOS SDK's relocatable dylibs
See https://github.com/rust-lang/cargo/issues/5077#issuecomment-1284482987
and https://github.com/rust-lang/rust/issues/127100

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1538>
2024-09-19 12:54:00 +02:00
Arun Raghavan
a369f9e345 gstreamer: Use new pad probe take_*() API in tests
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1537>
2024-09-19 10:03:03 +02:00
Arun Raghavan
e34323cf2a gstreamer: Set data to null if it's consumed
When the probe has HANDLED the data, we're expecting the caller to no
longer access it. Let's explicitly protect against that by setting the
data to NULL on return.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1537>
2024-09-19 10:03:02 +02:00
Arun Raghavan
58efcc5fd5 gstreamer: Add some setters for Message
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1537>
2024-09-19 10:03:02 +02:00
Arun Raghavan
301e25c832 gstreamer: Add some setters for Event
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1537>
2024-09-19 10:03:02 +02:00