mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
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();
|
||||
|
||||
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());
|
||||
|
|
Loading…
Reference in a new issue