Commit graph

16 commits

Author SHA1 Message Date
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 84c0d4c74c Use an AtomicBool for the seekable variable as is_seekable() can be called at any time from any thread 2016-05-23 21:38:54 +03:00
Sebastian Dröge 8514d46092 Use a Mutex to protect the URI storage
get_uri()/set_uri() can be called at any time from any thread, only
all other methods of Source/Sink are guaranteed to be called by only
a single thread at a time.
2016-05-23 20:29:01 +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 ae9f292278 Add FIXME comment 2016-05-15 18:39:22 +03:00
Sebastian Dröge e43f247be3 Fix various compiler warnings 2016-05-15 17:34:13 +03:00
Sebastian Dröge 87bd914cad Some minor cleanup 2016-05-15 16:16:55 +03:00
Sebastian Dröge 79aed66914 Require Sync and Send traits to be implemented for Sources 2016-05-15 11:55:52 +03:00
Sebastian Dröge 846f4775d9 Implement seeking in HTTP source 2016-05-15 11:48:54 +03:00
Sebastian Dröge 45a146be26 Allow registering GstPushSrc based types 2016-05-14 17:41:41 +03:00
Sebastian Dröge 2298fc3353 Some more error handling in the HTTP source 2016-05-14 17:20:51 +03:00
Sebastian Dröge b2b8332043 Add initial HTTP source based on Hyper
No seeking yet
2016-05-14 17:04:53 +03:00