forked from mirrors/gstreamer-rs
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:
parent
a5a016557f
commit
2471676aa4
1 changed files with 1 additions and 0 deletions
|
@ -824,6 +824,7 @@ mod tests {
|
||||||
gst::init().unwrap();
|
gst::init().unwrap();
|
||||||
|
|
||||||
let mut h = Harness::new("identity");
|
let mut h = Harness::new("identity");
|
||||||
|
h.set_src_caps_str("application/test");
|
||||||
let buf = gst::Buffer::new();
|
let buf = gst::Buffer::new();
|
||||||
let buf = h.push_and_pull(buf);
|
let buf = h.push_and_pull(buf);
|
||||||
assert!(buf.is_some());
|
assert!(buf.is_some());
|
||||||
|
|
Loading…
Reference in a new issue