Revert "audiomixer: Latency is twice the output buffer duration, not only once"

This reverts commit d387cf67df.

The analysis was wrong: The first 20ms of latency are introduced by the source
already and put into the latency query, making it only necessary to cover the
additional 20ms of audiomixer inside audiomixer.
This commit is contained in:
Sebastian Dröge 2015-03-04 13:16:03 +01:00
parent b9c521c0ec
commit 44c913413c

View file

@ -826,8 +826,7 @@ gst_audiomixer_init (GstAudioMixer * audiomixer)
audiomixer->discont_wait = DEFAULT_DISCONT_WAIT;
audiomixer->output_buffer_duration = DEFAULT_OUTPUT_BUFFER_DURATION;
gst_aggregator_set_latency (GST_AGGREGATOR (audiomixer),
2 * audiomixer->output_buffer_duration,
2 * audiomixer->output_buffer_duration);
audiomixer->output_buffer_duration, audiomixer->output_buffer_duration);
}
static void
@ -878,8 +877,8 @@ gst_audiomixer_set_property (GObject * object, guint prop_id,
case PROP_OUTPUT_BUFFER_DURATION:
audiomixer->output_buffer_duration = g_value_get_uint64 (value);
gst_aggregator_set_latency (GST_AGGREGATOR (audiomixer),
2 * audiomixer->output_buffer_duration,
2 * audiomixer->output_buffer_duration);
audiomixer->output_buffer_duration,
audiomixer->output_buffer_duration);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);