ElementMessagePtr ElementMessage::create(const ObjectPtr & source, const Structure & structure) { GstStructure *s = structure.isValid() ? gst_structure_copy(structure) : NULL; return ElementMessagePtr::wrap(gst_message_new_element(source, s), false); }
ApplicationMessagePtr ApplicationMessage::create(const ObjectPtr & source, const Structure & structure) { GstStructure *s = structure.isValid() ? gst_structure_copy(structure) : NULL; return ApplicationMessagePtr::wrap(gst_message_new_application(source, s), false); }