mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
dtmf: fix compiler warning for uninitialized values
This commit is contained in:
parent
76b1ac09a3
commit
dcadfe6621
2 changed files with 8 additions and 6 deletions
|
@ -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:
|
||||
|
@ -661,8 +661,9 @@ gst_dtmf_src_post_message (GstDTMFSrc * dtmfsrc, const gchar * message_name,
|
|||
return;
|
||||
}
|
||||
|
||||
gst_element_post_message (GST_ELEMENT (dtmfsrc),
|
||||
gst_message_new_element (GST_OBJECT (dtmfsrc), s));
|
||||
if (s)
|
||||
gst_element_post_message (GST_ELEMENT (dtmfsrc),
|
||||
gst_message_new_element (GST_OBJECT (dtmfsrc), s));
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
|
@ -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:
|
||||
|
@ -685,8 +685,9 @@ gst_dtmf_src_post_message (GstRTPDTMFSrc * dtmfsrc, const gchar * message_name,
|
|||
return;
|
||||
}
|
||||
|
||||
gst_element_post_message (GST_ELEMENT (dtmfsrc),
|
||||
gst_message_new_element (GST_OBJECT (dtmfsrc), s));
|
||||
if (s)
|
||||
gst_element_post_message (GST_ELEMENT (dtmfsrc),
|
||||
gst_message_new_element (GST_OBJECT (dtmfsrc), s));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue