GNOME Bugzilla – Bug 629018
rtpjpegpay: unable to build because of uninitialized variable warning
Last modified: 2010-09-08 05:14:25 UTC
I am unable to build gst-plugins-good because there is an uninitialized variable warning in gst/rtp/gstrtppay.c. The warning is this: cc1: warnings being treated as errors gstrtpjpegpay.c: In function 'gst_rtp_jpeg_pay_handle_buffer': gstrtpjpegpay.c:369: warning: 'sof_size' may be used uninitialized in this function Looking at the code, it is possible for sof_size to be uninitialized if the 'goto' statement on line 378 is followed. Here is a link to cgit showing that line: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/gstrtpjpegpay.c#n378 Unfortunately I don't know enough about jpeg to provide a patch.
commit 640cb863d4e06ea0e5291ec28e53247b2ec70b31 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed Sep 8 07:13:42 2010 +0200 rtpjpegpay: Fix uninitialized variable compiler warning Fixes bug #629018.