mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
validate:scenario: Add a method to retrieve all remaining actions
Not only the next one as it was not making much sense! API: - gst_validate_scenario_get_next_action + gst_validate_scenario_get_actions
This commit is contained in:
parent
16f97e3df6
commit
51593df323
2 changed files with 14 additions and 7 deletions
|
@ -2487,13 +2487,20 @@ gst_validate_print_action_types (const gchar ** wanted_types,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GstValidateAction *
|
/**
|
||||||
gst_validate_scenario_get_next_action (GstValidateScenario * scenario)
|
* gst_validate_scenario_get_actions:
|
||||||
|
* @scenario: The scenario to retrieve remaining actions for
|
||||||
|
*
|
||||||
|
* Get remaining actions from @scenario.
|
||||||
|
*
|
||||||
|
* Returns: (transfer full) (element-type GstValidateAction): A list of #GstValidateAction.
|
||||||
|
*/
|
||||||
|
GList *
|
||||||
|
gst_validate_scenario_get_actions (GstValidateScenario * scenario)
|
||||||
{
|
{
|
||||||
if (GPOINTER_TO_INT (g_private_get (&main_thread_priv))) {
|
if (GPOINTER_TO_INT (g_private_get (&main_thread_priv))) {
|
||||||
if (scenario->priv->actions && scenario->priv->actions->next)
|
return g_list_copy_deep (scenario->priv->actions,
|
||||||
return (GstValidateAction *) gst_mini_object_ref ((GstMiniObject *)
|
(GCopyFunc) gst_mini_object_ref, NULL);
|
||||||
scenario->priv->actions->next->data);
|
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (scenario, "Trying to get next action from outside"
|
GST_WARNING_OBJECT (scenario, "Trying to get next action from outside"
|
||||||
" the 'main' thread");
|
" the 'main' thread");
|
||||||
|
|
|
@ -273,8 +273,8 @@ gboolean gst_validate_scenario_execute_seek (GstValidateScenario *scenario,
|
||||||
GstSeekType stop_type,
|
GstSeekType stop_type,
|
||||||
GstClockTime stop);
|
GstClockTime stop);
|
||||||
|
|
||||||
GstValidateAction *
|
GList *
|
||||||
gst_validate_scenario_get_next_action (GstValidateScenario *scenario);
|
gst_validate_scenario_get_actions (GstValidateScenario *scenario);
|
||||||
GstValidateExecuteActionReturn
|
GstValidateExecuteActionReturn
|
||||||
gst_validate_execute_action (GstValidateActionType * action_type,
|
gst_validate_execute_action (GstValidateActionType * action_type,
|
||||||
GstValidateAction * action);
|
GstValidateAction * action);
|
||||||
|
|
Loading…
Reference in a new issue