mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-20 22:56:20 +00:00
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:
parent
8c671ed7dc
commit
d7fc5ca272
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue