uriplaylistbin: tests: use fakesink sync=true

Tests is more reliable when using sync sink.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1471>
This commit is contained in:
Guillaume Desmottes 2024-02-23 09:32:56 +01:00
parent 721b7e9c8c
commit cfebc32b82

View file

@ -114,7 +114,10 @@ fn test(
return;
};
let sink = gst::ElementFactory::make("fakesink").build().unwrap();
let sink = gst::ElementFactory::make("fakesink")
.property("sync", true)
.build()
.unwrap();
pipeline.add(&sink).unwrap();
sink.sync_state_with_parent().unwrap();