Example #1
0
public void Merge (Structure s) {
  if (!IsWritable)
    throw new ApplicationException ();

  gst_caps_merge_structure (Handle, gst_structure_copy (s.Handle));
}
Example #2
0
private void RemoveStructureReference (Structure s) {
  structures.Remove (s.Handle);
  s.CreateNativeCopy ();
}
Example #3
0
public Caps (Structure[] s) : this () {
  foreach (Structure o in s)
    Append (o);
}
Example #4
0
public Caps (Structure s) : this () {
  Append (s);
}
 // This function is called when an error message is posted on the bus
 static void HandleTags(object sender, GLib.SignalArgs args)
 {
     // We are possibly in the Gstreamer working thread, so we notify the main thread of this event through a message in the bus
     var s = new Structure ("tags-changed");
     Playbin.PostMessage (new Message (Playbin, s));
 }
Example #6
0
public static Query NewApplication (Gst.QueryType type, Structure structure) {
  Query query = (Query) Gst.MiniObject.GetObject (gst_query_new_application (type, (structure != null) ? structure.Handle : IntPtr.Zero), true);
  query.cached_structure = structure;
  structure.FreeNative = false;

  return query;
}