From 5afc2002b00c98b6840fead82ba7916bbe1ad712 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 3 Mar 2013 17:43:47 +0000 Subject: [PATCH] video: navigation: minor GValue optimisation --- gst-libs/gst/video/navigation.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/video/navigation.c b/gst-libs/gst/video/navigation.c index 5bc168a..b743093 100644 --- a/gst-libs/gst/video/navigation.c +++ b/gst-libs/gst/video/navigation.c @@ -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); } /** -- 2.7.4