Set caps on the harness in tests before pushing the first buffer

Otherwise there will be warnings about data flow before segment events,
as harness is only sending the segment event together with the caps.
This commit is contained in:
Sebastian Dröge 2019-01-21 17:34:44 +02:00
parent 8c671ed7dc
commit d7fc5ca272
2 changed files with 3 additions and 0 deletions

View file

@ -50,6 +50,8 @@ fn test_parse() {
let mut h = gst_check::Harness::new("mccparse");
h.set_src_caps_str("application/x-mcc, version=(int) 1");
let mut input_len = 0;
let mut output_len = 0;
let mut checksum = 0u32;

View file

@ -133,6 +133,7 @@ fn test_socket_reuse() {
udpsink.set_property("port", &6001i32).unwrap();
}
sink_h.play();
sink_h.set_src_caps_str("application/test");
{
let udpsrc = ts_src_h2.get_element().unwrap();