mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-09 18:55:27 +00:00
Merge pull request #96 from ubifred/master
Drop NdiSrcMeta after ndisrcdemux
This commit is contained in:
commit
08b52ffd2f
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