static GstValidateExecuteActionReturn
_run_command (GstValidateScenario * scenario, GstValidateAction * action)
{
- gchar **argv = NULL, *_stderr;
+ gchar **argv = NULL, *_stderr = NULL;
GError *error = NULL;
const GValue *env = NULL;
GSubprocess *subproc = NULL;
REPORT_UNLESS (g_subprocess_get_exit_status (subproc) == 0,
done, "Sub command failed. Stderr: %s", _stderr);
+ g_free (_stderr);
+
res = GST_VALIDATE_EXECUTE_ACTION_OK;
done:
segment.stop = tmp;
gst_structure_get_double (segment_struct, "rate", &segment.rate);
+ gst_structure_free (segment_struct);
+
gst_sample_set_segment (sample, &segment);
}