After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 629018 - rtpjpegpay: unable to build because of uninitialized variable warning
rtpjpegpay: unable to build because of uninitialized variable warning
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.26
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-08 02:39 UTC by Leo Singer
Modified: 2010-09-08 05:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Leo Singer 2010-09-08 02:39:18 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.
Comment 1 Sebastian Dröge (slomo) 2010-09-08 05:14:25 UTC
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.