Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0597]: `v` does not live long enough
- --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:16:136
- |
- 16 | ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, role.to_glib_none().0, T::static_type().to_glib() as *const _, v.to_glib_none().0, ptr::null_mut::<u8>());
- | ^ does not live long enough
- 17 | }
- 18 | }
- | - borrowed value only lives until here
- |
- note: borrowed value must be valid for the lifetime 'a as defined on the method body at 14:5...
- --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:14:5
- |
- 14 | / fn add_role<'a, T: 'static + GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType> + StaticType>(&self, role: &str, v: T) {
- 15 | | unsafe {
- 16 | | ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, role.to_glib_none().0, T::static_type().to_glib() as *const _, v.to_glib_none().0, ptr::null_mut::<u8>());
- 17 | | }
- 18 | | }
- | |_____^
- error: aborting due to previous error
Advertisement
Add Comment
Please, Sign In to add comment