Sebastian Dröge
|
61b5420102
|
Add wrapper around GstBuffer and use it in the source/sink
|
2016-09-12 15:00:28 +02:00 |
|
Sebastian Dröge
|
f9adac5f7e
|
Never let panics propagate to C and instead convert them to error messages
|
2016-09-04 00:27:04 +03:00 |
|
Sebastian Dröge
|
95dd469fbf
|
Make more pointers const
|
2016-09-03 23:49:54 +03:00 |
|
Sebastian Dröge
|
245d576159
|
Don't lock the URI mutex all the time while {Sink,Source}::{start,stop} is called but only when needed
|
2016-09-03 17:37:51 +03:00 |
|
Sebastian Dröge
|
fa855ec2b2
|
Move sink_render() to a more logical place
|
2016-09-02 01:03:31 +03:00 |
|
Sebastian Dröge
|
4afdd2c985
|
Move thread-handling out of the actual Source/Sink implementation
|
2016-09-02 00:52:28 +03:00 |
|
Sebastian Dröge
|
742515aac1
|
Properly report error / error messages and make the trait APIs more Rust-like
|
2016-08-27 11:16:17 +03:00 |
|
Sebastian Dröge
|
9ae934e48a
|
Make the UriError a bit nicer
|
2016-08-25 00:47:56 +03:00 |
|
Sebastian Dröge
|
df50617c87
|
Add trait functions for getting back the controller
|
2016-08-25 00:08:06 +03:00 |
|
Sebastian Dröge
|
82c29d369d
|
Properly report errors when setting the URI fails
|
2016-08-23 00:07:44 +03:00 |
|
Sebastian Dröge
|
6f6e56a5e3
|
Various further cleanups
|
2016-08-22 23:03:06 +03:00 |
|
Sebastian Dröge
|
c7c2676e67
|
WIP
|
2016-08-22 21:08:26 +03:00 |
|
Sebastian Dröge
|
4eb3d879de
|
Move FFI usage out of actual Sink/Source implementations
|
2016-08-10 18:27:38 +02:00 |
|
Sebastian Dröge
|
e1d2751fc2
|
Pass native GStreamer element pointer to functions
This will later be used to catch panics, convert them to GStreamer errors and
invalidate the native instance.
|
2016-07-20 21:06:17 +03:00 |
|
Sebastian Dröge
|
4e053cd6bc
|
Add new controller objects to Source/Sink
These store a pointer to the native GstElement and will allow calling back
into it later.
|
2016-07-20 14:50:35 +03:00 |
|
Sebastian Dröge
|
31fd26b982
|
Run everything through rustfmt
|
2016-07-20 11:28:58 +03:00 |
|
Sebastian Dröge
|
3db8882ce8
|
Pass Urls directly to the Source/Sink implementations instead of having them handle strings
|
2016-05-24 23:24:05 +03:00 |
|
Sebastian Dröge
|
5cc890cc04
|
Add comments about which Source/Sink methods are called from which threads
Source::get_size() / ::is_seekable() implementations need to be made
thread-safe still.
|
2016-05-23 21:35:03 +03:00 |
|
Sebastian Dröge
|
5673201400
|
Remove pointless cloning of URI in ::get_uri()
|
2016-05-22 16:29:25 +03:00 |
|
Sebastian Dröge
|
acc7d2ea26
|
Use Option<&str> instead of &Option<&str> for set_uri()
This seems more ergonomic to use, and is more common in other libraries.
|
2016-05-18 11:39:37 +03:00 |
|
Sebastian Dröge
|
b8a031c29b
|
Use Option<&str> instead of Option<String> for set_uri()
There is no reason to require a heap-allocated String here.
|
2016-05-18 11:29:57 +03:00 |
|
Sebastian Dröge
|
546d67fa5a
|
Add license and copyright notices
|
2016-05-15 18:54:09 +03:00 |
|
Sebastian Dröge
|
2cbe76c64f
|
Implement and require Sync+Send for sinks
|
2016-05-15 18:26:17 +03:00 |
|
Sebastian Dröge
|
29965fa8a7
|
Add finalizer for the sink to drop the instance
|
2016-05-15 17:47:38 +03:00 |
|
Sebastian Dröge
|
400696fbf8
|
Minor cleanup and make mutability more restricted
|
2016-05-15 17:43:13 +03:00 |
|
Luis de Bethencourt
|
d6d306f916
|
RsFileSink writes buffers to a file
|
2016-05-15 17:25:54 +03:00 |
|
Luis de Bethencourt
|
aeefcefe09
|
Add skeleton for RsFileSink with the new structure
Doesn't write to a file yet, just prints out a message when a buffer is
received. All the skeleton is there to implement Sink children.
|
2016-05-15 14:07:06 +03:00 |
|