projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e1ccb2
)
video: navigation: minor GValue optimisation
author
Tim-Philipp Müller
<tim@centricular.net>
Sun, 3 Mar 2013 17:43:47 +0000
(17:43 +0000)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 3 Mar 2013 17:43:47 +0000
(17:43 +0000)
gst-libs/gst/video/navigation.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/navigation.c
b/gst-libs/gst/video/navigation.c
index 5bc168af1cdcbbf8a8e160e2216db6a99ff89a9d..b7430938097f018ac118bb683d1d941c1be7ae00 100644
(file)
--- 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);
}
/**