mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
controller: remove dead assignment.
The value of prop is being overwritten just after without being read.
This commit is contained in:
parent
4028fa7149
commit
14b356b439
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ gst_controller_new_valist (GObject * object, va_list var_args)
|
|||
/* create GstControlledProperty for each property */
|
||||
while ((name = va_arg (var_args, gchar *))) {
|
||||
/* test if this property isn't yet controlled */
|
||||
if (!self || !(prop = gst_controller_find_controlled_property (self, name))) {
|
||||
if (!self || !gst_controller_find_controlled_property (self, name)) {
|
||||
/* create GstControlledProperty and add to self->propeties List */
|
||||
if ((prop = gst_controlled_property_new (object, name))) {
|
||||
/* if we don't have a controller object yet, now is the time to create one */
|
||||
|
@ -290,7 +290,7 @@ gst_controller_new_list (GObject * object, GList * list)
|
|||
for (node = list; node; node = g_list_next (node)) {
|
||||
name = (gchar *) node->data;
|
||||
/* test if this property isn't yet controlled */
|
||||
if (!self || !(prop = gst_controller_find_controlled_property (self, name))) {
|
||||
if (!self || !gst_controller_find_controlled_property (self, name)) {
|
||||
/* create GstControlledProperty and add to self->propeties List */
|
||||
if ((prop = gst_controlled_property_new (object, name))) {
|
||||
/* if we don't have a controller object yet, now is the time to create one */
|
||||
|
|
Loading…
Reference in a new issue