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,12 +3162,14 @@ gst_clapper_main (gpointer data)
|
|||||||
|
|
||||||
g_warning ("GstClapper: pipewiresink element not available");
|
g_warning ("GstClapper: pipewiresink element not available");
|
||||||
fakesink = gst_element_factory_make ("fakesink", "fakeaudiosink");
|
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);
|
g_object_set (self->playbin, "audio-sink", fakesink, NULL);
|
||||||
else
|
} else {
|
||||||
g_warning ("GstClapper: default audio sink will be used instead");
|
g_warning ("GstClapper: default audio sink will be used instead");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scaletempo = gst_element_factory_make ("scaletempo", NULL);
|
scaletempo = gst_element_factory_make ("scaletempo", NULL);
|
||||||
if (scaletempo) {
|
if (scaletempo) {
|
||||||
|
Reference in New Issue
Block a user