From 98cfce0ebea9c5adf1dcfaddcb0cdce66a57a210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sat, 29 Jan 2022 00:31:00 +0100 Subject: [PATCH] screencastService: Use strings for states Using strings instead of numbers allows for easier debugging, it means we can just log the state itself. Part-of: --- js/dbusServices/screencast/screencastService.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/dbusServices/screencast/screencastService.js b/js/dbusServices/screencast/screencastService.js index 7c0810567..0a88b48f1 100644 --- a/js/dbusServices/screencast/screencastService.js +++ b/js/dbusServices/screencast/screencastService.js @@ -29,16 +29,16 @@ const DEFAULT_FRAMERATE = 30; const DEFAULT_DRAW_CURSOR = true; const PipelineState = { - INIT: 0, - PLAYING: 1, - FLUSHING: 2, - STOPPED: 3, + INIT: 'INIT', + PLAYING: 'PLAYING', + FLUSHING: 'FLUSHING', + STOPPED: 'STOPPED', }; const SessionState = { - INIT: 0, - ACTIVE: 1, - STOPPED: 2, + INIT: 'INIT', + ACTIVE: 'ACTIVE', + STOPPED: 'STOPPED', }; var Recorder = class {