Commit graph

22 commits

Author SHA1 Message Date
Mathieu Duponchelle
e2a2a17f09 fallbackswitch: disable extra warnings for aggregator build 2020-01-02 15:07:10 +00:00
Guillaume Desmottes
9b33c3627d fallbackswitch: fix coding style
Just ran 'gst-indent'.
2020-01-02 11:49:13 +05:30
Sebastian Dröge
9772adbfbf Fix various new clippy warnings from 1.40 2019-12-22 11:35:01 +02:00
François Laignel
bdadf25f5c Clippy pass 2019-12-19 20:44:00 +01:00
Sebastian Dröge
ccfb8246be Fix compilation after gstreamer-rs!383 2019-12-18 08:17:42 +02:00
Sebastian Dröge
064cc827a3 Fix video plugins build after gstreamer-rs!377
VideoInfo::from_caps() now returns a Result.
2019-12-15 10:53:11 +02:00
Philippe Normand
0f99994d9e Fix audio plugins build after gstreamer-rs!376
AudioInfo::from_caps() now returns a Result.
2019-12-14 15:26:20 +00:00
Sebastian Dröge
f638b0eef7 Remove usage of glib_floating_reference_guard!()
It's not needed anymore.
2019-12-07 23:04:35 +02:00
Sebastian Dröge
1ae57967ae Move debug categories from an instance member to lazy_static
Simplifies the code a bit and less state to carry around.
2019-10-31 23:35:11 +01:00
Sebastian Dröge
e708e42dcb fallbackswitch: Allow using compressed video in the example application 2019-09-18 11:36:54 +00:00
Sebastian Dröge
a6812d852f fallbackswitch: Use DTS if existing or otherwise PTS for timestamp tracking 2019-09-18 11:36:54 +00:00
Sebastian Dröge
50ee0c1a1d fallbackswitch: Correctly handle incoming non-default segments
We need to convert buffer timestamps to the outgoing [0, -1] segment of
aggregator. This won't work correctly for negative DTS as is.
2019-09-18 11:36:54 +00:00
Sebastian Dröge
b7dba68ab9 fallbackswitch: Fix compiler warning in test 2019-09-18 11:36:54 +00:00
Sebastian Dröge
9c051083b0 fallbackswitch: Add support for non-raw caps
And in that case always wait for a keyframe before doing a pad switch.
2019-09-18 11:36:54 +00:00
Sebastian Dröge
05d379bd3d fallbackswitch: Minor cleanup 2019-09-18 11:36:54 +00:00
Sebastian Dröge
187cd9f8b1 fallbackswitch: Add simple GTK example application 2019-09-18 11:36:54 +00:00
Sebastian Dröge
63eab12132 fallbackswitch: Remove unnecessary base-prelude.h include
It does not exist in pre-1.16 versions of GStreamer yet.
2019-09-13 09:41:49 +00:00
Sebastian Dröge
7d88c014f8 fallbackswitch: Fix buffer clipping if no duration and 0/1 framerate
Instead of a division by 0, simply ignore the duration for clipping
purposes.
2019-09-11 22:04:46 +03:00
Sebastian Dröge
b05fb902f9 Remove usage of subclassing feature, it's the default now 2019-09-09 10:45:06 +03:00
Sebastian Dröge
6aa09149b9 fallbackswitch: Fix remaining GType name conflicts between bundled and gstbase aggregator
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/issues/67
2019-08-27 11:30:35 +03:00
Sebastian Dröge
183f197d32 fallbackswitch: Add some tests 2019-08-19 15:59:02 +00:00
Sebastian Dröge
b401b2f243 fallbackswitch: New plugin providing a fallbackswitch element
Allows having a live input stream and falling back to another input
stream after a configurable timeout without any buffers received on the
main input.
2019-08-19 15:59:02 +00:00