wellthatsucks

Untitled

Feb 20th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. error[E0597]: `v` does not live long enough
  2. --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:16:136
  3. |
  4. 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>());
  5. | ^ does not live long enough
  6. 17 | }
  7. 18 | }
  8. | - borrowed value only lives until here
  9. |
  10. note: borrowed value must be valid for the lifetime 'a as defined on the method body at 14:5...
  11. --> gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs:14:5
  12. |
  13. 14 | / fn add_role<'a, T: 'static + GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType> + StaticType>(&self, role: &str, v: T) {
  14. 15 | | unsafe {
  15. 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>());
  16. 17 | | }
  17. 18 | | }
  18. | |_____^
  19.  
  20. error: aborting due to previous error
Advertisement
Add Comment
Please, Sign In to add comment