rtprtxsend: Fix unitialized variable compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Sat, 8 Feb 2014 16:24:06 +0000 (17:24 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 8 Feb 2014 16:24:06 +0000 (17:24 +0100)
variable 'rtx_ssrc' is used uninitialized whenever
'if' condition is false [-Werror,-Wsometimes-uninitialized]

gst/rtpmanager/gstrtprtxsend.c

index ab246f8..5addbe4 100644 (file)
@@ -336,7 +336,7 @@ static SSRCRtxData *
 gst_rtp_rtx_send_get_ssrc_data (GstRtpRtxSend * rtx, guint32 ssrc)
 {
   SSRCRtxData *data;
-  guint32 rtx_ssrc;
+  guint32 rtx_ssrc = 0;
   gboolean consider = FALSE;
 
   if (G_UNLIKELY (!g_hash_table_contains (rtx->ssrc_data,