Sebastian Dröge
85e1d84784
Include 0.9.1 CHANGELOG.md in all sub-crates
2017-11-27 14:37:52 +02:00
Sebastian Dröge
67e47b0cbf
Fix some clippy warnings in examples/tutorials
2017-11-27 14:35:24 +02:00
Sebastian Dröge
291193c1ad
Remove some unneeded lifetime annotations
2017-11-27 14:35:24 +02:00
Sebastian Dröge
98ca60b684
Get rid of some unneeded transmute() in VideoInfo
2017-11-27 14:35:24 +02:00
Sebastian Dröge
0483d0881f
Add TagListRef::merge() and ::insert()
2017-11-27 14:35:24 +02:00
Sebastian Dröge
a4eea8734d
Toc::merge() doesn't take ownership of the taglist
2017-11-27 14:35:24 +02:00
Sebastian Dröge
918b34fb7a
Use Arc::clone(&val) instead of val.clone() to make it more explicit that only the Arc cloned here
2017-11-27 14:35:24 +02:00
Sebastian Dröge
2b0674b7cb
Derive more useful traits for various enums
2017-11-27 14:35:24 +02:00
Sebastian Dröge
124564d6f0
Update version to 0.9.1
2017-11-26 20:41:38 +02:00
Sebastian Dröge
1d63b0d89b
Export FlowError/Success, ClockError/Success, PadLinkError/Success too
2017-11-26 20:40:20 +02:00
Sebastian Dröge
4e2f89835b
Update CHANGELOG.md for 0.9.0
2017-11-26 19:32:20 +02:00
Sebastian Dröge
d09dd828d6
Update docs
2017-11-26 19:32:20 +02:00
Sebastian Dröge
1d80323b58
Update versions of all dependencies and point to releases instead of GIT
2017-11-26 19:32:20 +02:00
Sebastian Dröge
ef24828b40
Correctly ignore Pad::peer_query_* and query_*
...
These are manually bound now due to gst::FormatValue
2017-11-26 18:19:00 +02:00
Sebastian Dröge
94ba143c74
Allow anything that implements Into<Option<&str>> to be used for creating new pads
2017-11-21 16:16:56 +02:00
Sebastian Dröge
483b40679a
Flush stdout after writing every * in basic-tutorial-8
2017-11-17 20:43:13 +02:00
Guillaume Desmottes
82681d2b24
Add basic-tutorial-8
...
Fixes https://github.com/sdroege/gstreamer-rs/pull/52
2017-11-17 20:43:08 +02:00
Sebastian Dröge
c9636bca2e
Allow None caps for appsrc/appsink
...
Thanks to Guillaume Desmottes for noticing
2017-11-17 16:53:37 +02:00
Sebastian Dröge
e6d72527c4
Switch to failure/failure_derive from crates.io in the examples
2017-11-17 15:08:58 +02:00
Sebastian Dröge
f895f484cc
Fix up tutorials and examples for Message::get_src() returning an Option now
2017-11-16 13:58:56 +02:00
Sebastian Dröge
1dbc63dcb3
Message::get_src() can return None
...
The src is optional
2017-11-16 13:58:42 +02:00
Sebastian Dröge
86b787ac81
Add failure-based error handling to the decodebin example
...
This also makes use of directly reporting errors from a callback, by
transferring it via the error message to the main thread.
2017-11-16 13:39:34 +02:00
Sebastian Dröge
d430467ed5
Don't require Send for Structure::get()
...
Otherwise we won't be able to get references here.
2017-11-16 13:39:01 +02:00
Sebastian Dröge
9085474e37
Fix error/warning/info message macros that use format strings
2017-11-16 13:37:52 +02:00
Sebastian Dröge
7eb8429046
Run everything through latest rustfmt-nightly again
2017-11-15 22:33:51 +02:00
Sebastian Dröge
0629a0283e
Use SendValue instead of Value for all our GValue usage
...
We require types that can be sent between threads.
2017-11-15 20:32:52 +02:00
Sebastian Dröge
9734ec29cc
Implement macros for Element::message_full_with_details()
...
Allows attaching arbitrary structures to error/warning/info messages
2017-11-15 17:03:19 +02:00
Sebastian Dröge
4ab5893359
Allow to return something from the examples/tutorials main() wrapper
2017-11-12 20:11:25 +01:00
Sebastian Dröge
a01f1385ec
examples: Set up a runloop on macOS
2017-11-12 19:07:02 +01:00
Kornel
10151b9f0d
tutorials: Set up a runloop on macOS
...
Fixes https://github.com/sdroege/gstreamer-rs/pull/62
Fixes https://github.com/sdroege/gstreamer-rs/issues/58
2017-11-12 18:58:15 +01:00
Sebastian Dröge
d4bd1c2d76
Add dox feature to everything as needed
2017-11-12 13:33:02 +01:00
Sebastian Dröge
a557a8d66e
Require the dox feature of dependant crates
2017-11-12 12:58:30 +01:00
Sebastian Dröge
1c0e802bc8
Remove utils module from examples
...
It's unused now
2017-11-12 10:15:54 +01:00
Sebastian Dröge
c9027fb244
Switch appsrc example to failure based error handling
2017-11-12 10:15:37 +01:00
Kornel
1481cba5d9
Fixed macOS framework path in README.md
...
Fixes https://github.com/sdroege/gstreamer-rs/pull/57
2017-11-12 09:33:26 +01:00
Sebastian Dröge
eb99694ed3
Minor cleanup of appsink example
2017-11-11 16:56:37 +01:00
Sebastian Dröge
90700aa9b2
Switch appsink example to failure based error handling
2017-11-11 16:43:29 +01:00
Sebastian Dröge
d857fbd349
Add helper macros for generating error/warning/info messages
2017-11-11 16:43:29 +01:00
Sebastian Dröge
5494e5b827
Use u32 instead of i32 for Element::message_full() line numbers
2017-11-11 16:38:54 +01:00
Sebastian Dröge
c06c12dc87
Free memory of the correct type for the callback structs in appsink/appsrc
2017-11-11 16:38:54 +01:00
Sebastian Dröge
126159c762
Run everything through rustfmt once again
2017-11-11 13:31:01 +01:00
Sebastian Dröge
2fc3470fa1
Add a Builder for caps and structures
2017-11-11 13:18:50 +01:00
Sebastian Dröge
f823ef9cf7
Add constants for SECONDS, etc in u64
2017-11-11 13:00:50 +01:00
Sebastian Dröge
d5b2f5900c
Add API for converting ClockTime to/from mseconds, useconds, nseconds
2017-11-11 12:44:58 +01:00
Zeeshan Ali
d18cbe5943
examples: More robust cli arg handling
2017-11-11 12:28:34 +01:00
Sebastian Dröge
246a54368d
Clean up Query API a bit
...
There's now get_result() instead of get(), and separate getters for only
getting the constructor arguments of each query (otherwise query
handlers will get useless values when trying to answer a query).
2017-11-11 12:27:30 +01:00
Sebastian Dröge
c39c0c7264
Implement ClockTime as ClockTime(Option<u64>)
...
And also implement a FormatValue type that holds a value together with
its format to make usage of the positions/durations/seek positions/etc
more convenient and safe.
Fixes https://github.com/sdroege/gstreamer-rs/issues/3
2017-11-11 11:57:29 +01:00
Philippe Normand
bdcf0246eb
player example: Error management with the failure crate
2017-11-11 09:47:48 +01:00
Sebastian Dröge
f6ffa6919f
Run latest commit through rustfmt
2017-11-10 18:24:44 +01:00
Philippe Normand
93a1b3929c
Implement Error trait for error enums.
2017-11-10 17:51:06 +01:00