Théo Maillart
8f1524a592
inputselector: fix playing variable is never set
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4983 >
2023-07-07 08:43:56 +00:00
Tim-Philipp Müller
574e6b7994
gstreamer: re-indent with GNU indent 2.2.12
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4182 >
2023-03-17 03:18:53 +00:00
Vivia Nikolaidou
e9faf63d2e
inputselector: Wake up streaming thread before PLAYING_TO_PAUSED transition
...
Also take object lock before iterating the pads.
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1772
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4190 >
2023-03-16 13:34:28 +00:00
Vivia Nikolaidou
cf5b659bc6
inputselector: Avoid deadlock when shutting down
...
Transition from PLAYING to PAUSED unschedules any pending clock wait,
but there was no guard that prevented another input buffer then waiting
again while in PAUSED before dataflow stops. Use a new `playing` flag to
avoid this, and exit the chain function if instead of playing we're now
flushing. Basically the same as the clocksync element.
Closes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1772
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4098 >
2023-03-02 16:52:35 +02:00
Tim-Philipp Müller
3dd12cb640
inputselector: drop use of GSlice
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695 >
2023-01-24 15:25:06 +00:00
Alicia Boya García
2c2767b94a
Use automatic pad activation in elements that can take advantage of it
...
Pads are activated automatically when they are added if the element
state is >=PAUSED, so it's not necessary to activate them manually
anymore.
This patch removes manual pad activation from gstaggregator, gstconcat,
gstfunnel, and gstinputselector.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3636 >
2023-01-24 14:42:35 +00:00
Jan Alexander Steffens (heftig)
b0e55caf0d
input-selector: Take the object lock while iterating sinkpads
...
Otherwise we can race with pad removal and crash from use-after-free.
Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1717
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3745 >
2023-01-18 16:21:12 +00:00
Vivia Nikolaidou
c6af0a39e7
inputselector: Add drop-backwards property
...
When sync-streams=true, drop backwards buffers on pad switch.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3256 >
2022-11-22 21:21:40 +02:00
Vivia Nikolaidou
5fb71dd55b
inputselector: Fix waiting on sync-mode=clock
...
Basically copy over what clocksync does, but taking into account that we
have multiple upstream latencies.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3256 >
2022-11-22 21:21:40 +02:00
Thibault Saunier
6c364d9626
Move files from gstreamer into the "subprojects/gstreamer/" subdir
2021-09-24 16:13:07 -03:00