mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
api: Set fakesink to be sync
Otherwise seeking will not be possible when this sink is used
This commit is contained in:
6
lib/gst/clapper/gstclapper.c
vendored
6
lib/gst/clapper/gstclapper.c
vendored
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user