audioecho: removed unused variable in set_property

unused local variable 'delay' is removed.

https://bugzilla.gnome.org/show_bug.cgi?id=753450
This commit is contained in:
Prashant Gotarne 2015-08-10 17:10:42 +05:30 committed by Luis de Bethencourt
parent 604cc2a548
commit cde1f12ad3

View file

@ -210,17 +210,15 @@ gst_audio_echo_set_property (GObject * object, guint prop_id,
break; break;
} }
case PROP_MAX_DELAY:{ case PROP_MAX_DELAY:{
guint64 max_delay, delay; guint64 max_delay;
g_mutex_lock (&self->lock); g_mutex_lock (&self->lock);
max_delay = g_value_get_uint64 (value); max_delay = g_value_get_uint64 (value);
delay = self->delay;
if (GST_STATE (self) > GST_STATE_READY) { if (GST_STATE (self) > GST_STATE_READY) {
GST_ERROR_OBJECT (self, "Can't change maximum delay in" GST_ERROR_OBJECT (self, "Can't change maximum delay in"
" PLAYING or PAUSED state"); " PLAYING or PAUSED state");
} else { } else {
self->delay = delay;
self->max_delay = max_delay; self->max_delay = max_delay;
} }
g_mutex_unlock (&self->lock); g_mutex_unlock (&self->lock);