[farsight2/master] Use unchecked cast (we created the object)

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


---
 gst/fsrtpconference/fs-rtp-conference.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c
index 4810ded..5ce9f3d 100644
--- a/gst/fsrtpconference/fs-rtp-conference.c
+++ b/gst/fsrtpconference/fs-rtp-conference.c
@@ -177,7 +177,7 @@ fs_rtp_conference_new_session (FsBaseConference *conf,
 
   FsSession *new_session = NULL;
 
-  new_session = FS_SESSION (fs_rtp_session_new (media_type));
+  new_session = FS_SESSION_CAST (fs_rtp_session_new (media_type));
 
   return new_session;
 }
@@ -191,7 +191,7 @@ fs_rtp_conference_new_participant (FsBaseConference *conf,
 
   FsParticipant *new_participant = NULL;
 
-  new_participant = FS_PARTICIPANT (fs_rtp_participant_new (cname));
+  new_participant = FS_PARTICIPANT_CAST (fs_rtp_participant_new (cname));
 
   return new_participant;
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list