Sebastian Dröge
ad1d78b599
examples: Move to Rust 2018 edition
2020-10-10 11:00:48 +03:00
Sebastian Dröge
096ce958a4
tutorials: Move from failure to anyhow
2020-10-10 10:52:15 +03:00
Sebastian Dröge
dc9a9c4d78
Update CHANGELOG.md for 0.16.4
2020-10-09 13:41:11 +03:00
Sebastian Dröge
0b70e52032
gstreamer/audio/video: Correctly implement ExactSizeIterator
...
len() is optional but size_hint() must return the correct values. Also
this shouldn't return the overall length but the remaining length.
2020-10-09 11:35:19 +03:00
Sebastian Dröge
6e404f1831
gstreamer/meta: Don't collect iterators just to check their length in the tests
2020-10-09 11:35:19 +03:00
Sebastian Dröge
7aeb0e8f92
gstreamer/buffer: Don't implement ExactSizeIterator on meta iterator
...
We don't actually know the number of items and using the trait would
panic.
2020-10-09 11:35:19 +03:00
Sebastian Dröge
323bb1269b
gstreamer: Update to cfg-if 1.0
2020-10-09 11:35:19 +03:00
Sebastian Dröge
9379098a3f
examples/appsrc: Make use of the VideoFrame API for accessing the data
...
This is not really needed here but useful to have an example for the
videoframe API usage.
2020-10-03 17:55:36 +03:00
Sebastian Dröge
b59b5ada7e
gstreamer/clock: Unschedule clock ID when the receiver end of the channel is disconnected
2020-10-01 11:25:40 +03:00
Sebastian Dröge
4778d05238
gstreamer/clock_time: Add From/TryFrom impls to convert between ClockTime and std::time::Duration
2020-10-01 11:00:21 +03:00
Sebastian Dröge
c01f7072fb
gstreamer/clock: Add ClockID::wait_async_stream()
...
This provides an async stream with the values of each timeout.
2020-10-01 11:00:21 +03:00
Alexey Galakhov
4120ded424
Add gstreamer-controller
2020-09-30 16:28:51 +00:00
Jordan Petridis
8ff3cdde7e
ci: avoid trying to cache cargo registry
...
There have been some very weird issues, where
cargo keeps fetching older commits of glib-rs
and breaking the build like so [1]
Might be stale cache, or some http/git mirroring
shenanigans, so lets stop trying to use the
cache for now and check if the issue persists.
2020-09-29 18:11:08 +03:00
Sebastian Dröge
da4efdfa90
examples: Update for glib API changes
...
Timeouts now use std::time::Duration instead of plain integers.
2020-09-14 16:44:46 +03:00
Sebastian Dröge
a540274c72
ci: Update minimum supported version to 1.41
...
Needed for gst-plugins-rs now because one dependency requires a newer
version now.
2020-09-09 09:25:15 +03:00
Sebastian Dröge
4f10eefe1e
Update CHANGELOG.md for 0.16.3
2020-09-08 22:02:31 +03:00
Sebastian Dröge
8aaec57dac
gstreamer: Fix compilation after glib API change
2020-09-08 16:11:39 +03:00
Sebastian Dröge
6ce9a9ce12
video: Rename VideoTransferFunction functions
2020-09-08 15:43:05 +03:00
Sebastian Dröge
55efe30258
Regenerate everything
2020-09-08 15:42:28 +03:00
Sebastian Dröge
0877e6fcb1
Update gir-files to 1.18.0
2020-09-08 15:39:07 +03:00
Sebastian Dröge
f1b4592d17
ci: Rebuild GStreamer to update to 1.18.0
2020-09-08 15:37:48 +03:00
Sebastian Dröge
6e593ef4aa
examples: Debug log ringbuffer API requires GStreamer 1.14 or newer
...
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/281
2020-09-07 11:11:54 +03:00
Sebastian Dröge
ea3d0246bf
gstreamer/log: Fix debug_remove_default_log_function() to actually work
...
We have to pass `NULL` / `None` instead of the actual default log
function as because of `-Bsymbolic` or how DLLs work on Windows the
external function pointer is different to the internal one.
2020-09-03 10:13:09 +03:00
Marijn Suijten
beaa22fabb
base_transform: Reset unused vfuncs on consecutive configure calls
...
If a user ends up changing the configured mode later on previously
registered vfuncs are not reset meaning the object is effectively stuck
in mode `Both`.
2020-09-02 00:39:38 +02:00
Sebastian Dröge
160728965b
gstreamer: Update pretty-hex dependency to 0.2
2020-09-01 09:55:31 +03:00
Sebastian Dröge
2ac5a68896
examples: Remove unused imports
...
Not required anymore after a fix in glib.
2020-09-01 09:53:09 +03:00
Sebastian Dröge
82b469bc59
Update CI images for Rust 1.46 and GStreamer 1.17.90
...
And also update to meson 0.55.1 while we're at it.
2020-08-27 19:42:02 +03:00
Sebastian Dröge
fb779b42a8
Use glib::timeout_add_local() instead of removed gtk::timeout_add()
2020-08-27 09:49:27 +03:00
Jordan Petridis
42768a3159
ci: get rid of some template inheretence in yaml
...
its confusing and it took 3 attempts to get `before_script`
to fucntion as expected. Instead get rid of the anchor
and use a (questionable) but simpler heuristic to detemine
when to update the lockfile.
2020-08-25 19:24:45 +03:00
Jan Schmidt
2ead28defe
examples: Add an example of using the debug ringbuffer
...
A simple example of using the GStreamer debug ringbuffer to only
dump logs on a specific event (in this case EOS).
2020-08-26 00:07:02 +10:00
Jordan Petridis
0ec95b4aae
ci: fix plugins-update jobs
...
This is a hotfix for 8d9bb82492
These jobs are only run on after merge and were not tested before
2020-08-25 11:33:59 +03:00
Jordan Petridis
8d9bb82492
ci: ensure the registry cache and lockfile are up-to-date
...
We are caching the CARGO_HOME which includes git repos of
the gtk-rs bindings. Since we don't specify a branch
so it uses the default branch for the ref.
cargo build usually does an update if it has network access,
but its not guaranted or the case for other tools like clippy
which may still point to the stale git snapshot like here:
https://gitlab.freedesktop.org/thaytan/gstreamer-rs/-/jobs/4165449
2020-08-25 07:30:11 +00:00
Sebastian Dröge
a4239c3462
gstreamer: Remove API that was deprecated in 0.16
2020-08-24 17:33:35 +03:00
Sebastian Dröge
23174629b6
base/aggregator: "samples-selected" signal handler only has to be Send, not Sync
...
It can only be emitted from the aggregate thread.
2020-08-17 10:39:55 +03:00
Ruben Gonzalez
4e6766e6ed
gstreamer: Delete duplicated assert_initialized_main_thread
2020-08-14 09:27:10 +02:00
Sebastian Dröge
febb0dfd16
video/video_frame: Allow getting an owned buffer from readable video frames
...
In all other variations this is not possible as it would allow to
circumvent the mini object writability rules.
2020-08-11 13:35:39 +03:00
Sebastian Dröge
dfe87cf5c9
Add various new 1.18 APIs
2020-08-11 12:54:32 +03:00
Sebastian Dröge
70fd572a46
Regenerate everything
2020-08-11 12:53:27 +03:00
Sebastian Dröge
15d5d169a3
generator: Switch to Python 3
...
It's 2020.
2020-08-11 12:53:27 +03:00
Sebastian Dröge
888d3ca29a
gir-files: Update to 1.17.2.1
...
This should be approximately the same as 1.17.90.
This is the version from gstreamer-sys 0.16 which merged the GL
platforms back into the main gir file for backwards compatibility.
2020-08-11 12:53:27 +03:00
Sebastian Dröge
6abad01d88
ci: Update GStreamer version
2020-08-11 09:07:30 +03:00
Sebastian Dröge
746741f910
gstreamer: Update paste dependency from 0.1 to 1.0
2020-08-09 10:33:22 +03:00
Sebastian Dröge
43d1d0a4e9
gstreamer/pad: Factor out PadProbeInfo handling from pad probe trampoline into separate functions
...
This makes that part of the code non-generic and thus allows the
compiler to not put a copy of it into every caller with a different
closure.
For a test with 3 pad probes this overall reduced the number of LLVM IR
lines needed for the pad probes to about 8.5% of what it was before
(4485 -> 381 lines).
2020-08-05 10:33:12 +03:00
Sebastian Dröge
9ffe2238a7
examples: Add example that creates a thumbnail of a given position in a stream using the image crate
2020-08-03 00:25:19 +03:00
Jacob Teplitsky
4648cf1b34
rtp/rtp_buffer: Wrap set_marker() and get_marker() methods
2020-07-28 15:49:32 +00:00
Sebastian Dröge
a426c03720
Fix various new clippy warnings
2020-07-28 14:13:22 +03:00
Sebastian Dröge
01397b213d
ci: set -e
in all shell scripts
...
Otherwise errors are silently ignored.
2020-07-28 09:46:21 +03:00
Sebastian Dröge
1d3df7eaa5
ci: Update CI image for Rust 1.25, rustup 1.22.1, meson 0.55 and switch to cargo-outdated release
2020-07-28 09:44:37 +03:00
Sebastian Dröge
9cb40878f0
Update CHANGELOG.md for 0.16.2
2020-07-27 12:43:53 +03:00
Sebastian Dröge
b8eaef3d02
gstreamer: Add parse_bin_from_description_with_name_full()
...
The non-full variant existed already.
2020-07-27 10:38:31 +03:00