mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-01 09:13:48 +00:00
gtk4: Add debug logs for frame type
Since commit 7b561354
it is easy - and helpful for development
and debugging.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2490>
This commit is contained in:
parent
de26c2d58b
commit
b2ae5dfa54
1 changed files with 18 additions and 2 deletions
|
@ -757,6 +757,13 @@ impl Frame {
|
|||
orientation,
|
||||
});
|
||||
}
|
||||
if frame.is_some() {
|
||||
gst::debug!(
|
||||
CAT,
|
||||
imp = dbg_obj,
|
||||
"Created frame using DmabufTextureBuilder"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -805,6 +812,9 @@ impl Frame {
|
|||
wrapped_context: wrapped_context.unwrap().clone(),
|
||||
orientation,
|
||||
});
|
||||
if frame.is_some() {
|
||||
gst::debug!(CAT, imp = dbg_obj, "Created frame using GLTextureBuilder");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -843,11 +853,17 @@ impl Frame {
|
|||
}
|
||||
};
|
||||
|
||||
MappedFrame::SysMem {
|
||||
let frame = MappedFrame::SysMem {
|
||||
frame: gst_video::VideoFrame::from_buffer_readable(readable_frame, info)
|
||||
.map_err(|_| gst::FlowError::Error)?,
|
||||
orientation,
|
||||
}
|
||||
};
|
||||
gst::debug!(
|
||||
CAT,
|
||||
imp = dbg_obj,
|
||||
"Created frame using MemoryTextureBuilder"
|
||||
);
|
||||
frame
|
||||
}
|
||||
},
|
||||
overlays: vec![],
|
||||
|
|
Loading…
Reference in a new issue