From 1e95b89f8f9910c9f4b3b918aa83cf2185d9c11b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 3 Nov 2023 14:20:07 +0000 Subject: escape url passed to gstreamer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3c93ee34800cc8563370f75ef3ef6f8a9220e6ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158884 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- avmedia/source/gstreamer/gstframegrabber.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'avmedia') 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() ); -- cgit