From e8c5f5fb6b9abf863032080cef67daf84095d0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 18 Mar 2020 23:54:46 +0200 Subject: [PATCH] gstreamer/log: Replace % with %% in the debug message Otherwise gst_debug_log() will look for further arguments that don't exist, and will likely crash or worse. --- gstreamer/src/log.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/log.rs b/gstreamer/src/log.rs index a53adafd2..ee2a2f7e8 100644 --- a/gstreamer/src/log.rs +++ b/gstreamer/src/log.rs @@ -150,7 +150,7 @@ impl DebugCategory { module.to_glib_none().0, line as i32, obj_ptr, - fmt::format(args).to_glib_none().0, + fmt::format(args).replace("%", "%%").to_glib_none().0, ); } }