mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +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
fc917fb8cf
commit
38cf87aaea
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->discont_wait = DEFAULT_DISCONT_WAIT;
|
||||||
audiomixer->output_buffer_duration = DEFAULT_OUTPUT_BUFFER_DURATION;
|
audiomixer->output_buffer_duration = DEFAULT_OUTPUT_BUFFER_DURATION;
|
||||||
gst_aggregator_set_latency (GST_AGGREGATOR (audiomixer),
|
gst_aggregator_set_latency (GST_AGGREGATOR (audiomixer),
|
||||||
2 * audiomixer->output_buffer_duration,
|
audiomixer->output_buffer_duration, audiomixer->output_buffer_duration);
|
||||||
2 * audiomixer->output_buffer_duration);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -878,8 +877,8 @@ gst_audiomixer_set_property (GObject * object, guint prop_id,
|
||||||
case PROP_OUTPUT_BUFFER_DURATION:
|
case PROP_OUTPUT_BUFFER_DURATION:
|
||||||
audiomixer->output_buffer_duration = g_value_get_uint64 (value);
|
audiomixer->output_buffer_duration = g_value_get_uint64 (value);
|
||||||
gst_aggregator_set_latency (GST_AGGREGATOR (audiomixer),
|
gst_aggregator_set_latency (GST_AGGREGATOR (audiomixer),
|
||||||
2 * audiomixer->output_buffer_duration,
|
audiomixer->output_buffer_duration,
|
||||||
2 * audiomixer->output_buffer_duration);
|
audiomixer->output_buffer_duration);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
Loading…
Reference in a new issue