check: Set harness caps in unit test before pushing buffers

Otherwise there will be warnings about data flow before stream-start
event as the harness is only sending the events once caps are set.
This commit is contained in:
Sebastian Dröge 2019-02-21 15:07:28 +02:00 committed by Sebastian Dröge
parent a5a016557f
commit 2471676aa4

View file

@ -824,6 +824,7 @@ mod tests {
gst::init().unwrap();
let mut h = Harness::new("identity");
h.set_src_caps_str("application/test");
let buf = gst::Buffer::new();
let buf = h.push_and_pull(buf);
assert!(buf.is_some());