ts-udpsink: Post Message on SinkMessage event

This commit is contained in:
Abdul Rehman 2020-11-24 20:01:50 +05:00
parent f81d7b61b5
commit 87d7b44dd2

View file

@ -711,6 +711,9 @@ impl UdpSinkPadHandler {
EventView::Segment(e) => { EventView::Segment(e) => {
self.0.write().unwrap().segment = Some(e.get_segment().clone()); self.0.write().unwrap().segment = Some(e.get_segment().clone());
} }
EventView::SinkMessage(e) => {
let _ = element.post_message(e.get_message());
}
_ => (), _ => (),
} }
} }