mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
validate:scenario: Minor cleanup
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/231>
This commit is contained in:
parent
0a7cc6a56e
commit
aca781f981
1 changed files with 8 additions and 11 deletions
|
@ -2830,19 +2830,12 @@ _execute_wait_for_signal (GstValidateScenario * scenario,
|
|||
(action->structure, "signal-name");
|
||||
GstElement *target;
|
||||
GstStructure *data;
|
||||
GstValidateExecuteActionReturn res = GST_VALIDATE_EXECUTE_ACTION_OK;
|
||||
DECLARE_AND_GET_PIPELINE (scenario, action);
|
||||
|
||||
if (signal_name == NULL) {
|
||||
GST_ERROR ("No signal-name given for wait action");
|
||||
return GST_VALIDATE_EXECUTE_ACTION_ERROR;
|
||||
}
|
||||
|
||||
target = _get_target_element (scenario, action);
|
||||
if (target == NULL) {
|
||||
gst_object_unref (pipeline);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
REPORT_UNLESS (signal_name, err, "No signal-name given for wait action");
|
||||
REPORT_UNLESS ((target = _get_target_element (scenario, action)), err,
|
||||
"Could not find target element.");
|
||||
|
||||
gst_validate_printf (action, "Waiting for '%s' signal\n", signal_name);
|
||||
|
||||
|
@ -2874,6 +2867,10 @@ _execute_wait_for_signal (GstValidateScenario * scenario,
|
|||
|
||||
return non_blocking ? GST_VALIDATE_EXECUTE_ACTION_NON_BLOCKING :
|
||||
GST_VALIDATE_EXECUTE_ACTION_ASYNC;
|
||||
|
||||
err:
|
||||
gst_object_unref (pipeline);
|
||||
return res;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue