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.
This commit is contained in:
Sebastian Dröge 2020-03-18 23:54:46 +02:00
parent 8077b7ac82
commit e8c5f5fb6b

View file

@ -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,
);
}
}