GNOME Bugzilla – Bug 793838
rtsp-media: g_print() format string for latency is incorrect
Last modified: 2018-02-26 13:28:06 UTC
The "g_print ("setting latency to %lu %lu\n", min, max);" line should not use %lu, since the min/max values are 64-bit integers.
Created attachment 368935 [details] [review] format string patch
Comment on attachment 368935 [details] [review] format string patch This should not g_print() at all. Please change it to a GST_DEBUG() or so.
Yeah, I was wondering why this uses g_print(). I'll change it.
Created attachment 368937 [details] [review] g_print replacement patch This replaces the g_print() log line and uses GST_TIME_FORMAT for better readability of the min/max latency.
Created attachment 368938 [details] [review] g_print replacement patch v2 Typo
Review of attachment 368937 [details] [review]: ::: gst/rtsp-server/rtsp-media.c @@ +1923,3 @@ g_object_set (data->appsrc, "min-latency", min, "max-latency", max, NULL); + GST_DEBUG ("setting latency to min %" GST_TIME_FORMAT " max %" + GST_TIME_FORMAT "\n", GST_TIME_ARGS (min), GST_TIME_ARGS (max)); Without "\n" :)
Yep, that was the typo :)
commit 5f29712243e567d1ffcc2356654dfac00b46a5ee (HEAD -> master) Author: Carlos Rafael Giani <dv@pseudoterminal.org> Date: Mon Feb 26 14:16:54 2018 +0100 rtsp-media: Replace g_print() log line https://bugzilla.gnome.org/show_bug.cgi?id=793838