[farsight2/master] rtpconference: Don't assert on non-existing sdes parts
Olivier Crête
olivier.crete at collabora.co.uk
Mon Sep 14 14:38:26 PDT 2009
---
gst/fsrtpconference/fs-rtp-conference.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c
index ffb81fb..744c607 100644
--- a/gst/fsrtpconference/fs-rtp-conference.c
+++ b/gst/fsrtpconference/fs-rtp-conference.c
@@ -344,8 +344,11 @@ rtpbin_get_sdes (FsRtpConference *self, const gchar *prop, GValue *val)
"sdes"))
{
GstStructure *s;
+ const GValue *sval;
g_object_get (self->gstrtpbin, "sdes", &s, NULL);
- g_value_copy (gst_structure_get_value (s, prop), val);
+ sval = gst_structure_get_value (s, prop);
+ if (sval)
+ g_value_copy (gst_structure_get_value (s, prop), val);
gst_structure_free (s);
}
else
--
1.5.6.5
More information about the farsight-commits
mailing list