diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-03 14:20:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-03 16:51:03 +0100 |
commit | 1e95b89f8f9910c9f4b3b918aa83cf2185d9c11b (patch) | |
tree | f1d9a739826dfe94f009c5a8952a702ee313161c /avmedia | |
parent | b73cde1acb09d21cc6c74f88992f7ee0f871eba4 (diff) |
escape url passed to gstreamer
Change-Id: I3c93ee34800cc8563370f75ef3ef6f8a9220e6ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158884
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/gstreamer/gstframegrabber.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/avmedia/source/gstreamer/gstframegrabber.cxx b/avmedia/source/gstreamer/gstframegrabber.cxx index 4c4b17326860..a3b4b3aef5e1 100644 --- a/avmedia/source/gstreamer/gstframegrabber.cxx +++ b/avmedia/source/gstreamer/gstframegrabber.cxx @@ -50,9 +50,8 @@ void FrameGrabber::disposePipeline() FrameGrabber::FrameGrabber( std::u16string_view rURL ) { - gchar *pPipelineStr; - pPipelineStr = g_strdup_printf( - "uridecodebin uri=%s ! videoconvert ! videoscale ! appsink " + gchar *pPipelineStr = g_strdup_printf( + "uridecodebin uri=\"%s\" ! videoconvert ! videoscale ! appsink " "name=sink caps=\"video/x-raw,format=RGB,pixel-aspect-ratio=1/1\"", OUStringToOString( rURL, RTL_TEXTENCODING_UTF8 ).getStr() ); |