[farsight2/master] Add FsStreamDirection property to FsRtpStream
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:18:59 PST 2008
---
gst/fsrtpconference/fs-rtp-stream.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index 4c5fe53..e96a34e 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -65,6 +65,8 @@ struct _FsRtpStreamPrivate
FsRtpParticipant *participant;
FsStreamTransmitter *stream_transmitter;
+ FsStreamDirection direction;
+
gboolean disposed;
};
@@ -181,6 +183,8 @@ fs_rtp_stream_init (FsRtpStream *self)
self->priv->session = NULL;
self->priv->participant = NULL;
self->priv->stream_transmitter = NULL;
+
+ self->priv->direction = FS_DIRECTION_NONE;
}
static void
@@ -223,6 +227,9 @@ fs_rtp_stream_get_property (GObject *object,
case PROP_STREAM_TRANSMITTER:
g_value_set_object (value, self->priv->stream_transmitter);
break;
+ case PROP_DIRECTION:
+ g_value_set_enum (value, self->priv->direction);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -249,6 +256,8 @@ fs_rtp_stream_set_property (GObject *object,
self->priv->stream_transmitter =
FS_STREAM_TRANSMITTER (g_value_dup_object (value));
break;
+ case PROP_DIRECTION:
+ self->priv->direction = g_value_get_enum (value);
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
--
1.5.6.5
More information about the farsight-commits
mailing list