mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
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:
@@ -66,7 +66,6 @@ class ClapperPlayer extends GstClapper.Clapper
|
|||||||
this.needsTocUpdate = true;
|
this.needsTocUpdate = true;
|
||||||
|
|
||||||
this.set_all_plugins_ranks();
|
this.set_all_plugins_ranks();
|
||||||
this.set_initial_config();
|
|
||||||
this.set_and_bind_settings();
|
this.set_and_bind_settings();
|
||||||
|
|
||||||
this.connect('state-changed', this._onStateChanged.bind(this));
|
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);
|
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()
|
set_all_plugins_ranks()
|
||||||
{
|
{
|
||||||
let data = {};
|
let data = {};
|
||||||
|
Reference in New Issue
Block a user