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

github.com/sdroege/gst-plugin-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>2022-08-12 18:12:22 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-08-12 18:12:22 +0300
commit2b61d51e919caec4041e3170531890c0e115e21e (patch)
tree896c486fabe6efd1f46c2900c5d9824812d71608 /video
parent35b42b88d9d4f797c9f2b8dbbc9da0e5089c0820 (diff)
Remove unnecessary `unsafe` blocks for `Buffer::as_ptr()`
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/cea608overlay/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs
index a1200bca..00ca3036 100644
--- a/video/closedcaption/src/cea608overlay/imp.rs
+++ b/video/closedcaption/src/cea608overlay/imp.rs
@@ -196,7 +196,7 @@ impl Cea608Overlay {
// Pass ownership of the buffer to the cairo surface but keep around
// a raw pointer so we can later retrieve it again when the surface
// is done
- let buffer_ptr = unsafe { buffer.buffer().as_ptr() };
+ let buffer_ptr = buffer.buffer().as_ptr();
let surface = cairo::ImageSurface::create_for_data(
buffer,
cairo::Format::ARgb32,