Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-10-16 19:16:52 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-10-17 08:44:06 +0300
commitd468e1e4a695902ce011a8fb9f35f0118b9d1e87 (patch)
tree34c64e66c9040feee349703d8d12c92e2a942324 /video
parent50dd519c4f99e162fc1bca3b9d85eb056a2fa78f (diff)
Clean up usage of pad probes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1361>
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/transcriberbin/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs
index 7c7a823d3..bec46f68e 100644
--- a/video/closedcaption/src/transcriberbin/imp.rs
+++ b/video/closedcaption/src/transcriberbin/imp.rs
@@ -300,7 +300,7 @@ impl TranscriberBin {
return gst::PadProbeReturn::Pass;
}
- if let Some(gst::PadProbeData::Buffer(buffer)) = &mut probe_info.data {
+ if let Some(buffer) = probe_info.buffer_mut() {
let buffer = buffer.make_mut();
while let Some(meta) = buffer.meta_mut::<gst_video::VideoCaptionMeta>() {
meta.remove().unwrap();