player: Remove hardcoded ring buffer value

We should aim to have this as a configurable option.
Until then lets use the default value.
This commit is contained in:
Rafał Dzięgiel
2022-05-17 22:06:45 +02:00
parent 85bdbb1132
commit af6cf01c98

View File

@@ -66,7 +66,6 @@ class ClapperPlayer extends GstClapper.Clapper
this.needsTocUpdate = true;
this.set_all_plugins_ranks();
this.set_initial_config();
this.set_and_bind_settings();
this.connect('state-changed', this._onStateChanged.bind(this));
@@ -98,13 +97,6 @@ class ClapperPlayer extends GstClapper.Clapper
settings.bind('subtitle-font', this.pipeline, 'subtitle-font-desc', flag);
}
set_initial_config()
{
/* FIXME: change into option in preferences */
const pipeline = this.get_pipeline();
pipeline.ring_buffer_max_size = 8 * 1024 * 1024;
}
set_all_plugins_ranks()
{
let data = {};