mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2197>
This commit is contained in:
parent
9eea48536a
commit
98cfce0ebe
1 changed files with 7 additions and 7 deletions
|
|
@ -29,16 +29,16 @@ const DEFAULT_FRAMERATE = 30;
|
||||||
const DEFAULT_DRAW_CURSOR = true;
|
const DEFAULT_DRAW_CURSOR = true;
|
||||||
|
|
||||||
const PipelineState = {
|
const PipelineState = {
|
||||||
INIT: 0,
|
INIT: 'INIT',
|
||||||
PLAYING: 1,
|
PLAYING: 'PLAYING',
|
||||||
FLUSHING: 2,
|
FLUSHING: 'FLUSHING',
|
||||||
STOPPED: 3,
|
STOPPED: 'STOPPED',
|
||||||
};
|
};
|
||||||
|
|
||||||
const SessionState = {
|
const SessionState = {
|
||||||
INIT: 0,
|
INIT: 'INIT',
|
||||||
ACTIVE: 1,
|
ACTIVE: 'ACTIVE',
|
||||||
STOPPED: 2,
|
STOPPED: 'STOPPED',
|
||||||
};
|
};
|
||||||
|
|
||||||
var Recorder = class {
|
var Recorder = class {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue