summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-12-08 10:55:28 -0300
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-12-08 16:47:15 +0000
commit0a7cc6a56e7cbe28c578c68f6ecca2978d606097 (patch)
treeb1f2ba5e2509d00289d02c756751398236a825a5
parentd974b0b5d5f330308c0bb3159cdfc27aa1076f6c (diff)
validate: Use gst_validate_action_*ref everywhere.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/231>
-rw-r--r--validate/gst/validate/gst-validate-scenario.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c
index cc755a8..c891bfb 100644
--- a/validate/gst/validate/gst-validate-scenario.c
+++ b/validate/gst/validate/gst-validate-scenario.c
@@ -388,8 +388,8 @@ gst_validate_action_get_type (void)
if (_gst_validate_action_type == 0) {
_gst_validate_action_type =
g_boxed_type_register_static (g_intern_static_string
- ("GstValidateAction"), (GBoxedCopyFunc) gst_mini_object_ref,
- (GBoxedFreeFunc) gst_mini_object_unref);
+ ("GstValidateAction"), (GBoxedCopyFunc) gst_validate_action_ref,
+ (GBoxedFreeFunc) gst_validate_action_unref);
json_boxed_register_serialize_func (_gst_validate_action_type,
JSON_NODE_OBJECT,
@@ -2049,7 +2049,7 @@ execute_switch_track_pb3 (GstValidateScenario * scenario,
if (scenario->priv->target_state > GST_STATE_PAUSED) {
res = GST_VALIDATE_EXECUTE_ACTION_ASYNC;
} else {
- gst_mini_object_ref ((GstMiniObject *) action);
+ gst_validate_action_ref (action);
res = GST_VALIDATE_EXECUTE_ACTION_NON_BLOCKING;
}
@@ -4610,11 +4610,11 @@ gst_validate_scenario_finalize (GObject * object)
(GDestroyNotify) gst_validate_seek_information_free);
g_list_free_full (priv->sinks,
(GDestroyNotify) gst_validate_sink_information_free);
- g_list_free_full (priv->actions, (GDestroyNotify) gst_mini_object_unref);
+ g_list_free_full (priv->actions, (GDestroyNotify) gst_validate_action_unref);
g_list_free_full (priv->non_blocking_running_actions,
- (GDestroyNotify) gst_mini_object_unref);
+ (GDestroyNotify) gst_validate_action_unref);
g_list_free_full (priv->on_addition_actions,
- (GDestroyNotify) gst_mini_object_unref);
+ (GDestroyNotify) gst_validate_action_unref);
g_free (priv->pipeline_name);
gst_structure_free (priv->vars);
if (self->description)
@@ -5856,7 +5856,7 @@ gst_validate_action_set_done (GstValidateAction * action)
g_main_context_invoke_full (NULL, G_PRIORITY_DEFAULT_IDLE,
(GSourceFunc) _action_set_done,
- gst_mini_object_ref (GST_MINI_OBJECT (action)),
+ gst_validate_action_ref (action),
(GDestroyNotify) gst_validate_action_unref);
}
@@ -6097,7 +6097,7 @@ gst_validate_scenario_get_actions (GstValidateScenario * scenario)
g_return_val_if_fail (main_context_acquired, NULL);
ret = g_list_copy_deep (scenario->priv->actions,
- (GCopyFunc) gst_mini_object_ref, NULL);
+ (GCopyFunc) gst_validate_action_ref, NULL);
g_main_context_release (g_main_context_default ());