mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-10 22:01:29 +00:00
Improve and fix LATENCY query handling
This now follows the design docs everywhere, especially the maximum latency handling. https://bugzilla.gnome.org/show_bug.cgi?id=744106
This commit is contained in:
parent
68515c4439
commit
3c9ae895b0
1 changed files with 3 additions and 2 deletions
|
@ -826,7 +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),
|
||||
audiomixer->output_buffer_duration, GST_CLOCK_TIME_NONE);
|
||||
audiomixer->output_buffer_duration, audiomixer->output_buffer_duration);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -877,7 +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),
|
||||
audiomixer->output_buffer_duration, GST_CLOCK_TIME_NONE);
|
||||
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