From a99abc652aa568a0e8f490276c827bf5b07d76aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 6 Sep 2021 10:12:33 +0200 Subject: [PATCH] Do not store subtitle-offset as gsetting This is not something we should remember --- data/com.github.rafostar.Clapper.gschema.xml | 4 ---- src/player.js | 5 ----- 2 files changed, 9 deletions(-) diff --git a/data/com.github.rafostar.Clapper.gschema.xml b/data/com.github.rafostar.Clapper.gschema.xml index 26db03ad..141c0440 100644 --- a/data/com.github.rafostar.Clapper.gschema.xml +++ b/data/com.github.rafostar.Clapper.gschema.xml @@ -52,10 +52,6 @@ - - 0 - Offset time for subtitle tracks relative to video (milliseconds) - "Sans 12" The subtitles font description diff --git a/src/player.js b/src/player.js index 2c997625..fe016221 100644 --- a/src/player.js +++ b/src/player.js @@ -678,11 +678,6 @@ class ClapperPlayer extends GstClapper.Clapper this.set_audio_video_offset(value); debug(`set audio-video offset: ${value}`); break; - case 'subtitle-offset': - value = Math.round(settings.get_int(key) * -Gst.MSECOND); - this.set_subtitle_video_offset(value); - debug(`set subtitle-video offset: ${value}`); - break; case 'dark-theme': root = this.widget.get_root(); if(!root) break;