mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
screencast: Don't force buffer copies on recent gstreamer versions
Gstreamer 1.20.4 includes a fix in the videoconvert element that makes
it no longer necessary to always copy buffers in pipewiresrc to have
smooth recordings. This change now skips those otherwise unnecessary
copies when using a new enough videoconvert.
Related: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2928
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2503>
(cherry picked from commit d7b443197b)
This commit is contained in:
parent
48c7c02c87
commit
bffca472e1
1 changed files with 2 additions and 1 deletions
|
|
@ -231,7 +231,8 @@ var Recorder = class {
|
|||
_ensurePipeline(nodeId) {
|
||||
const framerate = this._framerate;
|
||||
const needsCopy =
|
||||
Gst.Registry.get().check_feature_version('pipewiresrc', 0, 3, 57);
|
||||
Gst.Registry.get().check_feature_version('pipewiresrc', 0, 3, 57) &&
|
||||
!Gst.Registry.get().check_feature_version('videoconvert', 1, 20, 4);
|
||||
|
||||
let fullPipeline = `
|
||||
pipewiresrc path=${nodeId}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue