mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
video: navigation: minor GValue optimisation
This commit is contained in:
parent
4e1ccb2885
commit
5afc2002b0
1 changed files with 2 additions and 6 deletions
|
@ -278,9 +278,7 @@ gst_navigation_query_set_commands (GstQuery * query, gint n_cmds, ...)
|
|||
va_end (ap);
|
||||
|
||||
structure = gst_query_writable_structure (query);
|
||||
gst_structure_set_value (structure, "commands", &list);
|
||||
|
||||
g_value_unset (&list);
|
||||
gst_structure_take_value (structure, "commands", &list);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -307,9 +305,7 @@ gst_navigation_query_set_commandsv (GstQuery * query, gint n_cmds,
|
|||
gst_query_list_add_command (&list, cmds[i]);
|
||||
}
|
||||
structure = gst_query_writable_structure (query);
|
||||
gst_structure_set_value (structure, "commands", &list);
|
||||
|
||||
g_value_unset (&list);
|
||||
gst_structure_take_value (structure, "commands", &list);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue