tests: test-filter: fix dereference before null check

Null-checking op_info suggests that it may be null, but it has already
been dereferenced on all paths leading to the check.

There may be a null pointer dereference, or else the comparison
against null is unnecessary.
This commit is contained in:
Víctor Manuel Jáquez Leal 2018-01-10 17:10:28 +01:00
parent 66794c9bc9
commit 089b8982e9

View file

@ -152,13 +152,14 @@ error_cleanup:
static void
dump_operation (GstVaapiFilterOpInfo * op_info)
{
GParamSpec *const pspec = op_info->pspec;
GParamSpec *pspec;
GValue value = G_VALUE_INIT;
gchar *value_str;
if (!op_info)
return;
pspec = op_info->pspec;
g_print (" %s: ", g_param_spec_get_name (pspec));
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
g_param_value_set_default (pspec, &value);