From cd479f3bb42caa9e3fd5f6a9d696a0112686d005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 3 Sep 2021 20:32:17 +0200 Subject: [PATCH] api: Set fakesink to be sync Otherwise seeking will not be possible when this sink is used --- lib/gst/clapper/gstclapper.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index 6efd2491..c356e0f6 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -3162,10 +3162,12 @@ gst_clapper_main (gpointer data) g_warning ("GstClapper: pipewiresink element not available"); fakesink = gst_element_factory_make ("fakesink", "fakeaudiosink"); - if (fakesink) + if (fakesink) { + g_object_set (fakesink, "sync", TRUE, NULL); g_object_set (self->playbin, "audio-sink", fakesink, NULL); - else + } else { g_warning ("GstClapper: default audio sink will be used instead"); + } } }