From 829cc21696793ba4f6efe1125767dc724b77bf8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Tue, 19 Aug 2025 16:49:24 +0200 Subject: [PATCH] threadshare: inter: update doc example Use recent improvements: * `ts-audiotestsrc` can now be used properly. * `ts-blocking-adapter` must be used before a blocking element. Part-of: --- generic/threadshare/src/inter/src/imp.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/generic/threadshare/src/inter/src/imp.rs b/generic/threadshare/src/inter/src/imp.rs index 4c28428e7..34d818809 100644 --- a/generic/threadshare/src/inter/src/imp.rs +++ b/generic/threadshare/src/inter/src/imp.rs @@ -34,7 +34,7 @@ * // An upstream pipeline producing a 1 second Opus encoded audio stream * let pipe_up = gst::parse::launch( * " - * audiotestsrc is-live=true num-buffers=50 volume=0.02 + * ts-audiotestsrc is-live=true num-buffers=50 volume=0.02 context=ts-group-1 context-wait=20 * ! opusenc * ! ts-intersink inter-context=my-inter-ctx * ", @@ -47,11 +47,12 @@ * // and render it locally. * let pipe_down = gst::parse::launch( * " - * ts-intersrc inter-context=my-inter-ctx context=ts-group-01 context-wait=20 + * ts-intersrc inter-context=my-inter-ctx context=ts-group-1 context-wait=20 * ! opusdec * ! audioconvert * ! audioresample - * ! ts-queue context=ts-group-01 context-wait=20 max-size-buffers=1 max-size-bytes=0 max-size-time=0 + * ! ts-queue context=ts-group-1 context-wait=20 max-size-buffers=1 max-size-bytes=0 max-size-time=0 + * ! ts-blocking-adapter * ! autoaudiosink * ", * )