mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
validate: Misc fixes
This commit is contained in:
parent
f4c6ed368e
commit
6181f7763d
1 changed files with 8 additions and 3 deletions
|
@ -2483,9 +2483,14 @@ gst_validate_print_action_types (const gchar ** wanted_types,
|
|||
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);
|
||||
if (GPOINTER_TO_INT (g_private_get (&main_thread_priv))) {
|
||||
if (scenario->priv->actions && scenario->priv->actions->next)
|
||||
return (GstValidateAction *) gst_mini_object_ref ((GstMiniObject *)
|
||||
scenario->priv->actions->next->data);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (scenario, "Trying to get next action from outside"
|
||||
" the 'main' thread");
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue