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 1ce02d4ce5
commit 8bb64bb825

View file

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