[farsight2/master] Do not try to find the pipeline factory if there is no blueprint

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:25:39 PST 2008


---
 gst/fsrtpconference/fs-rtp-session.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 185250c..629cfdd 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -2344,10 +2344,13 @@ _create_codec_bin (const CodecAssociation *ca, const FsCodec *codec,
   else
     profile = ca->recv_profile;
 
-  if (is_send)
-    pipeline_factory = ca->blueprint->send_pipeline_factory;
-  else
-    pipeline_factory = ca->blueprint->receive_pipeline_factory;
+  if (ca->blueprint)
+  {
+    if (is_send)
+      pipeline_factory = ca->blueprint->send_pipeline_factory;
+    else
+      pipeline_factory = ca->blueprint->receive_pipeline_factory;
+  }
 
   if (profile)
   {
-- 
1.5.6.5




More information about the farsight-commits mailing list