Esempio n. 1
0
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);
}
Esempio n. 2
0
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);
}