[farsight2/master] Add variable for the number of components
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:36 PST 2008
---
transmitters/rawudp/fs-rawudp-transmitter.c | 2 ++
transmitters/rawudp/fs-rawudp-transmitter.h | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 98a6693..fef51f2 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -182,6 +182,8 @@ fs_rawudp_transmitter_init (FsRawUdpTransmitter *self)
self->priv = FS_RAWUDP_TRANSMITTER_GET_PRIVATE (self);
self->priv->disposed = FALSE;
+ self->components = 2;
+
/* First we need the src elemnet */
self->priv->gst_src = gst_bin_new (NULL);
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.h b/transmitters/rawudp/fs-rawudp-transmitter.h
index 6eada3e..768a0eb 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.h
+++ b/transmitters/rawudp/fs-rawudp-transmitter.h
@@ -76,6 +76,9 @@ struct _FsRawUdpTransmitter
{
FsTransmitter parent;
+ /* The number of components (READONLY)*/
+ gint components;
+
/*< private >*/
FsRawUdpTransmitterPrivate *priv;
};
--
1.5.6.5
More information about the farsight-commits
mailing list