Sebastian Dröge
50829bdec9
Store GWeakRef in a Box
...
Its memory location is important, and having it stored directly inside
the struct allows it to possible be moved to a different address.
2017-04-10 16:59:34 +03:00
Sebastian Dröge
24a10bb614
Port everything else over to glib/gobject/gstreamer-sys
2017-04-10 00:29:07 +03:00
Sebastian Dröge
e4ababa98f
Switch to gstreamer-sys crate and port buffer bindings to it
2017-04-06 15:10:22 +03:00
Sebastian Dröge
1dda357b86
Move MiniObject::is_writable() from the trait to the reference containers
2017-04-05 23:52:38 +03:00
Sebastian Dröge
2b799910fc
Update to bitflags 0.8
2017-02-19 12:12:06 +02:00
Sebastian Dröge
b3e01add5c
Remove FlowError::NotLinked
...
This will never appear in Rust code as all forwarding of buffers will
happen at the C/Rust binding layer.
2017-02-16 17:54:20 +02:00
Sebastian Dröge
e64facc254
Change license from LGPLv2.1+ to Apache2/MIT
...
https://github.com/sdroege/rsplugin/issues/7
2017-02-16 17:52:27 +02:00
Sebastian Dröge
6b7e6d8e6c
Add unit test for buffers that checks the miniobject writability wrapping
2017-02-04 17:51:05 +01:00
Sebastian Dröge
9e59eff973
Fix some clippy warnings
2017-02-03 15:57:49 +01:00
Sebastian Dröge
7b5764e759
Implement GstRc/GstRef wrapper for GstMiniObject
...
Keeps the miniobject specific code local and provides a more similar API
to Rc/Arc. Also makes it impossible to accidentially try writing to an
unwritable miniobject.
2017-02-03 15:57:49 +01:00
Sebastian Dröge
974a689fd7
Keep amount of unsafe code a bit smaller for the GstStream* stream IDs
2017-01-23 21:17:36 +02:00
Sebastian Dröge
2ec438e5b8
Add Eq/PartialEq instances for TagList and Caps
2017-01-23 18:31:51 +02:00
Sebastian Dröge
1ee7c8b9e3
Return stream IDs directly instead of creating an owned String
2017-01-23 18:26:42 +02:00
Sebastian Dröge
7a33a4177f
Improve C string handling a bit
...
These are always going to be valid UTF-8 or things are very wrong.
2017-01-23 14:35:16 +02:00
Sebastian Dröge
e2b18a91e0
Add bindings for GstStream and GstStreamCollection
...
To be used in the demuxer for tracking streams and their related
information.
2017-01-22 20:13:07 +02:00
Sebastian Dröge
509810e87a
Add tags support
2017-01-18 14:36:11 +02:00
Sebastian Dröge
aa54f1a4e6
Use num_rational instead of home-baked (u32, u32) fractions
2017-01-15 20:56:20 +01:00
Sebastian Dröge
3e17102166
Add API to create a Buffer from a Vec<u8> with memory reuse and use it for the Speex headers
2017-01-14 18:04:55 +01:00
Sebastian Dröge
745a6a3c17
Implement From<_> for Value to simplify code a lot
2017-01-13 21:45:23 +01:00
Sebastian Dröge
ac9ba47403
Move Value code into its own module
2017-01-13 19:16:12 +02:00
Sebastian Dröge
93f09c8a4a
Add support for Speex to FLV demuxer
...
... and arrays of values in caps while at the same time refactoring the
Value code a bit.
2017-01-13 19:04:51 +02:00
Sebastian Dröge
3b299f3fb6
Simplify caps a bit by using slices instead of IntoIterator
...
IntoIterator did not work as expected anyway and would require usage of
AsRef, which then breaks type inference for empty slices for example.
2017-01-09 20:55:10 +02:00
Sebastian Dröge
e9cf54d43b
Add support for AAC and AVC/H264 in FLV
2017-01-06 00:46:59 +02:00
Sebastian Dröge
0fabdf3774
Add caps from string binding
2016-12-30 19:05:04 +02:00
Sebastian Dröge
80ba9a8b8f
Use caps also for the demuxer sink/src pad templates instead of strings
2016-12-30 19:02:31 +02:00
Sebastian Dröge
e26cdc9187
Implement a minimal GstCaps binding and use it in the demuxer
2016-12-30 12:11:30 +01:00
Sebastian Dröge
137a14360f
Add debug logging everywhere
2016-12-27 16:47:39 +01:00
Sebastian Dröge
c9aad84898
Only format strings, etc in debug log handler if the configured threshold is higher than the level
2016-12-26 10:53:36 +01:00
Sebastian Dröge
fa6712e5aa
Fix some clippy warnings
2016-12-25 12:28:17 +01:00
Sebastian Dröge
bccf3805a1
Ignore stop failures
...
stop should only really fail if everything is broken, but we can always
recover somehow here.
2016-12-25 12:20:44 +01:00
Sebastian Dröge
8ee1f72184
Add support for logging via slog
2016-12-25 12:16:12 +01:00
Sebastian Dröge
89b0220e26
Build each component into its own GStreamer plugin
2016-12-23 19:04:32 +02:00