mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate:override: Notify override object when they get attached
This commit is contained in:
parent
2c1d8433bd
commit
d4d99267a4
3 changed files with 14 additions and 0 deletions
|
@ -185,6 +185,7 @@ static void
|
||||||
GST_INFO_OBJECT (registry, "Adding override %s to %s", entry->name, name);
|
GST_INFO_OBJECT (registry, "Adding override %s to %s", entry->name, name);
|
||||||
|
|
||||||
gst_validate_monitor_attach_override (monitor, entry->override);
|
gst_validate_monitor_attach_override (monitor, entry->override);
|
||||||
|
gst_validate_override_attached (entry->override);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -321,3 +321,12 @@ gst_validate_override_can_attach (GstValidateOverride * override,
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gst_validate_override_attached (GstValidateOverride * override)
|
||||||
|
{
|
||||||
|
GstValidateOverrideClass *klass = GST_VALIDATE_OVERRIDE_GET_CLASS (override);
|
||||||
|
|
||||||
|
if (klass->attached)
|
||||||
|
klass->attached (override);
|
||||||
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ struct _GstValidateOverrideClass
|
||||||
gboolean (*can_attach)(GstValidateOverride * override,
|
gboolean (*can_attach)(GstValidateOverride * override,
|
||||||
GstValidateMonitor * monitor);
|
GstValidateMonitor * monitor);
|
||||||
|
|
||||||
|
void (*attached)(GstValidateOverride * override);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstValidateOverride
|
struct _GstValidateOverride
|
||||||
|
@ -127,6 +128,9 @@ void gst_validate_override_set_element_added_handler (GstValidateO
|
||||||
GST_VALIDATE_API
|
GST_VALIDATE_API
|
||||||
gboolean gst_validate_override_can_attach (GstValidateOverride * override, GstValidateMonitor *monitor);
|
gboolean gst_validate_override_can_attach (GstValidateOverride * override, GstValidateMonitor *monitor);
|
||||||
|
|
||||||
|
GST_VALIDATE_API
|
||||||
|
void gst_validate_override_attached (GstValidateOverride * override);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* #ifndef __GST_VALIDATE_OVERRIDE_H__*/
|
#endif /* #ifndef __GST_VALIDATE_OVERRIDE_H__*/
|
||||||
|
|
Loading…
Reference in a new issue