validate: scenario: Add a method to get the following action to be executed
authorThibault Saunier <tsaunier@gnome.org>
Wed, 4 Feb 2015 14:25:50 +0000 (15:25 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Sat, 14 Feb 2015 15:32:10 +0000 (16:32 +0100)
API:
  + gst_validate_scenario_get_next_action

https://bugzilla.gnome.org/show_bug.cgi?id=743994

validate/gst/validate/gst-validate-scenario.c
validate/gst/validate/gst-validate-scenario.h

index 69d9aec..dfe1480 100644 (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)
 {
index f251b41..7291c8c 100644 (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__ */