Commit graph

919 commits

Author SHA1 Message Date
Sebastian Dröge 30950917a0 sdp: Fix up SDPMedia API that accesses indexed fields
It's forbidden to provide an index higher than the number of elements in
the array, and will cause crashes or other undesired outcomes.

Also the insert() API should take an Option<u32> instead of an i32 that
might also be -1 for appending. It's awful API otherwise.
2019-02-28 20:35:45 +02:00
Sebastian Dröge 37fd226836 sdp: Add media iterators for bandwidths, formats, connections and attributes 2019-02-28 20:35:45 +02:00
Sebastian Dröge ab2dbe0234 sdp: Fix SDPMedia::attributes_to_caps() signature to actually work
It has to take a mutable caps reference or otherwise will simply fail.
2019-02-28 20:35:45 +02:00
Sebastian Dröge 20e10698ac sdp: Add a SDPMediaRef that allows borrowing of a media
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/189
2019-02-28 20:35:45 +02:00
Víctor Manuel Jáquez Leal 066b22efc5 Fix examples and tutorial with GTK API updates 2019-02-28 12:02:51 +01:00
Víctor Manuel Jáquez Leal c378167573 glupload: panic if target OS is not Linux
For now this is the only OS supported by this test.
2019-02-28 12:02:51 +01:00
Víctor Manuel Jáquez Leal 07ddf2f370 glupload: update glutin API
GlWindow was dropped in favor of CombinedContext and ContextTrait

Fixes: #190
2019-02-28 12:02:51 +01:00
Sebastian Dröge 490004d9c5 Remove empty lines from CHANGELOG.md as that breaks the GitLab rendering
... if it's between items in a list.
2019-02-22 17:50:59 +02:00
Sebastian Dröge 32e961d418 Update versions to 0.14.0 2019-02-22 13:04:56 +02:00
Sebastian Dröge 7feadd2f32 Update documentation 2019-02-22 12:13:27 +02:00
Sebastian Dröge 0f6850d6a9 Update CHANGELOG.md for 0.13.0 2019-02-22 11:55:16 +02:00
Sebastian Dröge d15588e65c rtsp-server: Generate the various filter functions 2019-02-22 11:55:16 +02:00
Sebastian Dröge 8754e4220e Regenerate everything with latest gir 2019-02-22 11:55:16 +02:00
Sebastian Dröge 95f6844702 Fix various minor clippy warnings 2019-02-21 19:56:23 +02:00
Sebastian Dröge 0a96e0a80b gstreamer-video: Don't take a &mut self in the constructor of VideoTimeCodeInterval 2019-02-21 19:29:47 +02:00
Sebastian Dröge 53c98db711 gstreamer: Don't implement ClockId's Ord/etc based on the compare function
It is only comparing the times, and two clock ids with the same time are
obviously not the same.
2019-02-21 18:48:57 +02:00
Sebastian Dröge 2471676aa4 check: Set harness caps in unit test before pushing buffers
Otherwise there will be warnings about data flow before stream-start
event as the harness is only sending the events once caps are set.
2019-02-21 13:08:54 +00:00
Sebastian Dröge a5a016557f bus: add_watch() can fail as there can only be one watch at a time
Return an Option<SourceId> because of that.
2019-02-15 13:30:05 +02:00
François Laignel e24efa7259 gstreamer-base: subclassing: move parent fn in dedicated trait (!231) 2019-02-13 11:53:14 +00:00
François Laignel fb99f1abad gstreamer: subclassing: move parent fn in dedicated trait (!231) 2019-02-13 11:53:14 +00:00
François Laignel e2d448f002 examples: fix ges warnings 2019-02-12 16:10:02 +01:00
Sebastian Dröge f2d79fb352 Make use of Bus::add_watch_local() 2019-02-10 12:06:40 +02:00
Sebastian Dröge e6992345cc Add gst_video::convert_frame_async_local() without Send bound on the closure 2019-02-10 11:47:48 +02:00
Sebastian Dröge 09ad177315 Add Bus::add_watch_local() without Send bound on the closure
This panics if not called from the thread that owns the main context.
2019-02-10 11:43:55 +02:00
Josh Matthews ae1455e4d6 Return 0 for the mask of any negative GstAudioChannelPosition value. 2019-02-07 10:02:00 -05:00
François Laignel 3ea34695dd ges: update functions returning bool to Result<(), BoolError>
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/181
2019-02-07 11:03:01 +01:00
Sebastian Dröge b4ad105c1d basic-tutorial-5: Stop using deprecated GTK API
Disabling double buffering is deprecated since quite a while.
2019-02-07 10:26:37 +02:00
Sebastian Dröge de978bd115 Update gtk feature flags
The minimum supported version of GTK is now 3.14 so we don't have to
opt-in for 3.8/3.10 APIs anymore.
2019-02-07 09:49:07 +02:00
François Laignel be9566fe4a gstreamer-sdp: update functions returning bool to Result<(), glib::BoolError>
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/182
2019-02-05 20:26:28 +01:00
François Laignel 211e476592 Update for functions returning bool in most remaining workspaces
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/179
2019-02-04 16:14:13 +01:00
François Laignel 37b717c020 gstreamer-base: add parent_xxx impl for all vfunc 2019-02-03 08:41:20 +00:00
François Laignel fcb46ee5bf gstreamer: add parent_xxx impl for all vfunc 2019-02-03 08:41:20 +00:00
François Laignel ac00608b7e gstreamer-base: fix parent vfunc invocations when needed
Fixes #180
2019-02-03 08:41:20 +00:00
François Laignel 56c00d9250 gstreamer: fix parent vfunc invocations when needed
Fixes #180
2019-02-03 08:41:20 +00:00
Abdul Rehman 338215bd53 gstreamer-net: Add GstNetAddressMeta wrapper 2019-02-01 17:36:52 +05:00
Sebastian Dröge 354f9fbfe4 Fix compilation of tests without features="v1_14" 2019-01-30 13:02:41 +00:00
Sebastian Dröge 42a8b9e505 Get rid of double-boxing for some other closures 2019-01-30 13:02:41 +00:00
Sebastian Dröge 1adb063fbc Don't box closures twice for signal callback closures 2019-01-29 19:24:26 +02:00
Sebastian Dröge d8085a5d79 Fix GES example
Some constructors are returning None now based on the annotations
2019-01-29 16:45:35 +02:00
Sebastian Dröge 49c5fa33ba Add tests for Element::foreach_pad() and Bus::set_sync_handler() 2019-01-29 16:45:35 +02:00
Sebastian Dröge 5625a75b1b Pad::new_from_static_pad_template_with_gtype() can return None 2019-01-29 16:28:51 +02:00
Sebastian Dröge 00cbd49923 Regenerate with latest gir 2019-01-29 16:28:51 +02:00
Sebastian Dröge 16adb8e8b8 Update some nullable annotations from git
See https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/83
2019-01-29 16:28:51 +02:00
Guillaume Desmottes 3f6424d2ac examples: playbin: show how to use debug_to_dot_file() 2019-01-28 15:53:07 +01: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
François Laignel c65214b207 gstreamer-base: update signatures to Result<(), ErrorMessage>
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/175
2019-01-27 09:36:56 +00:00
François Laignel 5d1a839558 gstreamer-base: update signatures to Result<(), LoggableError>
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/175
2019-01-27 09:36:56 +00:00
Sebastian Dröge 2b2c3bbade Make sure to initialize GStreamer in all Structure tests 2019-01-27 03:02:11 +02:00
Pete Johanson b62e2f154d Add getters to VideColorimetry. 2019-01-27 00:21:50 +00:00
François Laignel a88918dd5f Use glib_result_from_gboolean! where applicable 2019-01-26 12:46:37 +01:00