[farsight2/master] Make the RtpStream's properties refcount more explicit

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


---
 gst/fsrtpconference/fs-rtp-stream.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index da9a3c8..ee39137 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -292,7 +292,7 @@ fs_rtp_stream_set_property (GObject *object,
       break;
     case PROP_STREAM_TRANSMITTER:
       self->priv->stream_transmitter =
-        FS_STREAM_TRANSMITTER (g_value_dup_object (value));
+        FS_STREAM_TRANSMITTER (g_value_get_object (value));
       break;
     case PROP_DIRECTION:
       self->priv->direction = g_value_get_enum (value);
@@ -438,6 +438,18 @@ fs_rtp_stream_set_remote_codecs (FsStream *stream,
   }
 }
 
+/**
+ * fs_rtp_stream_new:
+ * @session: The #FsRtpSession this stream is a child of
+ * @participant: The #FsRtpParticipant this stream is for
+ * @direction: the initial #FsDirection for this stream
+ * @stream_transmitter: the #FsStreamTransmitter for this stream, one
+ *   reference to it will be eaten
+ *
+ * This function create a new stream
+ *
+ * Returns: the newly created string or NULL on error
+ */
 
 FsRtpStream *
 fs_rtp_stream_new (FsRtpSession *session,
-- 
1.5.6.5




More information about the farsight-commits mailing list