summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/dbusServices/screencast/screencastService.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/dbusServices/screencast/screencastService.js b/js/dbusServices/screencast/screencastService.js
index 1bc41a651..3183a0093 100644
--- a/js/dbusServices/screencast/screencastService.js
+++ b/js/dbusServices/screencast/screencastService.js
@@ -244,7 +244,10 @@ var Recorder = class {
this._nodeId = nodeId;
this._pipelineState = PipelineState.STARTING;
- this._pipelineConfigs = PIPELINES.values();
+ const fallbackSupported =
+ Gst.Registry.get().check_feature_version('pipewiresrc', 0, 3, 67);
+ this._pipelineConfigs = fallbackSupported
+ ? PIPELINES.values() : [PIPELINES.at(-1)].values();
this._tryNextPipeline();
});
this._sessionProxy.StartSync();