[PATCH] Fix the build issue for gcc 4.4.4

Hai Lan hai.lan at intel.com
Wed Nov 9 14:21:24 PST 2011


When the pointer is uninitialized, the compilor will report error.

Signed-off-by: Hai Lan <hai.lan at intel.com>
---
 gst/dtmf/gstdtmfsrc.c    |    2 +-
 gst/dtmf/gstrtpdtmfsrc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c
index 6bc4642..0615364 100644
--- a/gst/dtmf/gstdtmfsrc.c
+++ b/gst/dtmf/gstdtmfsrc.c
@@ -641,7 +641,7 @@ static void
 gst_dtmf_src_post_message (GstDTMFSrc * dtmfsrc, const gchar * message_name,
     GstDTMFSrcEvent * event)
 {
-  GstStructure *s;
+  GstStructure *s = NULL;
 
   switch (event->event_type) {
     case DTMF_EVENT_TYPE_START:
diff --git a/gst/dtmf/gstrtpdtmfsrc.c b/gst/dtmf/gstrtpdtmfsrc.c
index 1689dc4..d487d31 100644
--- a/gst/dtmf/gstrtpdtmfsrc.c
+++ b/gst/dtmf/gstrtpdtmfsrc.c
@@ -665,7 +665,7 @@ static void
 gst_dtmf_src_post_message (GstRTPDTMFSrc * dtmfsrc, const gchar * message_name,
     GstRTPDTMFSrcEvent * event)
 {
-  GstStructure *s;
+  GstStructure *s = NULL;
 
   switch (event->event_type) {
     case RTP_DTMF_EVENT_TYPE_START:
-- 
1.7.3.4



More information about the gstreamer-devel mailing list