mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
b9c521c0ec
commit
44c913413c
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue