validate: scenario: Add a method to get the following action to be executed

API:
  + gst_validate_scenario_get_next_action

https://bugzilla.gnome.org/show_bug.cgi?id=743994
This commit is contained in:
Thibault Saunier 2015-02-04 15:25:50 +01:00
parent 8125c46122
commit 9f5310b1d8
2 changed files with 13 additions and 0 deletions

View file

@ -2280,6 +2280,16 @@ gst_validate_print_action_types (const gchar ** wanted_types,
return TRUE;
}
GstValidateAction *
gst_validate_scenario_get_next_action (GstValidateScenario * scenario)
{
if (scenario->priv->actions && scenario->priv->actions->next)
return (GstValidateAction *) gst_mini_object_ref ((GstMiniObject *)
scenario->priv->actions->next->data);
return NULL;
}
void
init_scenarios (void)
{

View file

@ -257,6 +257,9 @@ gboolean gst_validate_scenario_execute_seek (GstValidateScenario *scenario,
GstSeekType stop_type,
GstClockTime stop);
GstValidateAction *
gst_validate_scenario_get_next_action (GstValidateScenario *scenario);
G_END_DECLS
#endif /* __GST_VALIDATE_SCENARIOS__ */