Commit graph

1089 commits

Author SHA1 Message Date
Jordan Petridis
9d5347d7b5
CI: abstract the setup needed compile the crates 2019-03-12 11:36:24 +02:00
Sebastian Dröge
811e8c1dba examples/glupload: Fix build with glutin API changes 2019-03-12 08:27:50 +01:00
Sebastian Dröge
e0c0c7d417 examples/glupload: Fix build after glutin API changes
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/issues/191
2019-03-07 14:05:35 +02:00
Sebastian Dröge
86a31b4139 Silence/fix various clippy warnings 2019-03-07 14:05:35 +02:00
Sebastian Dröge
8c39da4e5b Update to Rust 1.31 linter-specific attributes 2019-03-04 15:16:01 +02:00
Sebastian Dröge
631eee13da gstreamer/pad: Use the correct type for destroying the pad task closure data
It's a Box<RefCell<_>> and not a plain Box<_> like for the other pad
functions, and doing this wrong causes crashes at runtime.
2019-03-01 19:49:27 +02:00
Sebastian Dröge
23a776ea63 sdp: Remove return value from various media setter/adder functions
They can't possibly fail.
2019-02-28 20:35:45 +02:00
Sebastian Dröge
83a4529927 sdp: Fix SDPMedia constructor, it can't possibly fail 2019-02-28 20:35:45 +02:00
Sebastian Dröge
43a7eb8642 sdp: Fix leaking of SDPMedia in the adder of SDPMessage 2019-02-28 20:35:45 +02:00
Sebastian Dröge
0dcaa072a1 sdp: Fix various add/set functions on SDPMessage to not have a return value
These can't possibly fail.
2019-02-28 20:35:45 +02:00
Sebastian Dröge
e830de8904 sdp: Fix freeing of message content when parsing fails 2019-02-28 20:35:45 +02:00
Sebastian Dröge
74bbff55ad sdp: Add proper Debug/Clone impls for various SDP types
And fix nullability of others.
2019-02-28 20:35:45 +02:00
Sebastian Dröge
7673be5baa sdp: Remove MIKEY API for now
It was completely broken and has to be done differently. Once someone
actually needs it this can be re-added properly.
2019-02-28 20:35:45 +02:00
Sebastian Dröge
1d2f77bb64 sdp: Implement Borrow/BorrowMut/ToOwned for SDPMessage 2019-02-28 20:35:45 +02:00
Sebastian Dröge
af86d5745d sdp: Implement a proper Debug impl on SDPMessage 2019-02-28 20:35:45 +02:00
Sebastian Dröge
baf1d299d7 sdp: Fix up SDPMessage 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
95b3a3a648 sdp: Add message iterators for the various arrays 2019-02-28 20:35:45 +02:00
Sebastian Dröge
fa14530c1d sdp: Add a SDPMessageRef that allows borrowing of a message 2019-02-28 20:35:45 +02:00
Sebastian Dröge
7b66325f22 sdp: Implement Borrow/BorrowMut/ToOwned for SDPMedia 2019-02-28 20:35:45 +02:00
Sebastian Dröge
b6f569d049 sdp: Implement a proper Debug impl on SDPMedia 2019-02-28 20:35:45 +02:00
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