[gnome-shell] dbusServices/screencast: Quote filename in pipeline



commit 9d6ccb6072ec2894bbbc147a2416ec05523d0bd3
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Aug 11 01:34:03 2020 +0200

    dbusServices/screencast: Quote filename in pipeline
    
    Otherwise Gst fails to parse the pipeline string if the filename
    contains spaces, as all words following the first are interpreted
    as additional Gst elements.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1403

 js/dbusServices/screencast/screencastService.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/dbusServices/screencast/screencastService.js b/js/dbusServices/screencast/screencastService.js
index 99ad59f2eb..f7683d4821 100644
--- a/js/dbusServices/screencast/screencastService.js
+++ b/js/dbusServices/screencast/screencastService.js
@@ -224,7 +224,7 @@ var Recorder = class {
             video/x-raw,max-framerate=${framerate}/1 !
             videoconvert !
             ${this._pipelineString} !
-            filesink location=${this._filePath}`;
+            filesink location="${this._filePath}"`;
         fullPipeline = this._substituteThreadCount(fullPipeline);
 
         this._pipeline = Gst.parse_launch_full(fullPipeline,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]