mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-01 16:01:01 +00:00
Drop NdiSrcMeta after ndisrcdemux
The NdiSrcMeta is no longer needed after the demux and if kept, it generates many errors as the transform_func() always false.
This commit is contained in:
parent
83797e9df3
commit
71dd5182f3
1 changed files with 3 additions and 2 deletions
|
@ -147,11 +147,11 @@ impl NdiSrcDemux {
|
|||
&self,
|
||||
pad: &gst::Pad,
|
||||
element: &super::NdiSrcDemux,
|
||||
buffer: gst::Buffer,
|
||||
mut buffer: gst::Buffer,
|
||||
) -> Result<gst::FlowSuccess, gst::FlowError> {
|
||||
gst_log!(CAT, obj: pad, "Handling buffer {:?}", buffer);
|
||||
|
||||
let meta = buffer.meta::<ndisrcmeta::NdiSrcMeta>().ok_or_else(|| {
|
||||
let meta = buffer.make_mut().meta_mut::<ndisrcmeta::NdiSrcMeta>().ok_or_else(|| {
|
||||
gst_error!(CAT, obj: element, "Buffer without NDI source meta");
|
||||
gst::FlowError::Error
|
||||
})?;
|
||||
|
@ -265,6 +265,7 @@ impl NdiSrcDemux {
|
|||
}
|
||||
}
|
||||
drop(state);
|
||||
meta.remove().unwrap();
|
||||
|
||||
if add_pad {
|
||||
element.add_pad(&srcpad).unwrap();
|
||||
|
|
Loading…
Reference in a new issue