[farsight2/master] Ignore setting of NULL caps
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:00 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index b823d2e..06a3e58 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -3138,6 +3138,9 @@ _discovery_caps_changed (GstPad *pad, GParamSpec *pspec, FsRtpSession *session)
g_object_get (pad, "caps", &caps, NULL);
+ if (!caps)
+ return;
+
g_return_if_fail (GST_CAPS_IS_SIMPLE(caps));
s = gst_caps_get_structure (caps, 0);
--
1.5.6.5
More information about the farsight-commits
mailing list