[farsight2/master] Handle event references correctly for dtmf-events in special sources
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:21:42 PST 2008
---
gst/fsrtpconference/fs-rtp-special-source.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-special-source.c b/gst/fsrtpconference/fs-rtp-special-source.c
index 7d3e50c..606e1ef 100644
--- a/gst/fsrtpconference/fs-rtp-special-source.c
+++ b/gst/fsrtpconference/fs-rtp-special-source.c
@@ -576,12 +576,18 @@ fs_rtp_special_sources_send_event (GList *current_extra_sources,
{
GList *item = NULL;
- gst_event_ref (event);
+ if (!event)
+ {
+ GST_ERROR ("Could not make dtmf-event");
+ return FALSE;
+ }
+
for (item = g_list_first (current_extra_sources);
item;
item = g_list_next (item))
{
FsRtpSpecialSource *source = item->data;
+ gst_event_ref (event);
if (fs_rtp_special_source_send_event (source, event))
{
gst_event_unref (event);
--
1.5.6.5
More information about the farsight-commits
mailing list