Advertisement
wellthatsucks

Untitled

Feb 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. pub trait RTSPMediaFactoryExtManual {
  2. fn add_role(&self, roles: &[(&str, &ToSendValue)]);
  3. }
  4.  
  5. impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExtManual for O {
  6. fn add_role(&self, roles: &[(&str, &ToSendValue)]) {
  7. for &(f, v) in roles {
  8. let sv = v.to_send_value();
  9. ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, "plop".to_glib_none().0, v.type_(), v.get(), None);
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement