[farsight2/master] Implement new stream transmitter in rawudp
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:19 PST 2008
---
transmitters/rawudp/fs-rawudp-stream-transmitter.c | 14 ++++++++++++++
transmitters/rawudp/fs-rawudp-stream-transmitter.h | 4 ++++
transmitters/rawudp/fs-rawudp-transmitter.c | 4 +++-
3 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-stream-transmitter.c b/transmitters/rawudp/fs-rawudp-stream-transmitter.c
index 79fb7f7..9e0bf8e 100644
--- a/transmitters/rawudp/fs-rawudp-stream-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-stream-transmitter.c
@@ -197,3 +197,17 @@ fs_rawudp_stream_transmitter_add_remote_candidate (
return FALSE;
}
+
+FsRawUdpStreamTransmitter *
+fs_rawudp_stream_transmitter_newv (guint n_parameters, GParameter *parameters,
+ GError **error)
+{
+ FsRawUdpStreamTransmitter *streamtransmitter = NULL;
+
+ error = NULL;
+
+ streamtransmitter = g_object_newv (FS_TYPE_RAWUDP_STREAM_TRANSMITTER,
+ n_parameters, parameters);
+
+ return streamtransmitter;
+}
diff --git a/transmitters/rawudp/fs-rawudp-stream-transmitter.h b/transmitters/rawudp/fs-rawudp-stream-transmitter.h
index 9e3637f..6aef5b7 100644
--- a/transmitters/rawudp/fs-rawudp-stream-transmitter.h
+++ b/transmitters/rawudp/fs-rawudp-stream-transmitter.h
@@ -86,6 +86,10 @@ struct _FsRawUdpStreamTransmitter
GType fs_rawudp_stream_transmitter_get_type (void);
+FsRawUdpStreamTransmitter *
+fs_rawudp_stream_transmitter_newv (guint n_parameters, GParameter *parameters,
+ GError **error);
+
G_END_DECLS
#endif /* __FS_RAWUDP_STREAM_TRANSMITTER_H__ */
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 6a00b52..0a2194b 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -35,6 +35,7 @@
#endif
#include "fs-rawudp-transmitter.h"
+#include "fs-rawudp-stream-transmitter.h"
#include <gst/farsight/fs-session.h>
@@ -356,5 +357,6 @@ fs_rawudp_transmitter_new_stream_transmitter (FsTransmitter *transmitter,
GError **error)
{
- return NULL;
+ return FS_STREAM_TRANSMITTER (fs_rawudp_stream_transmitter_newv (
+ n_parameters, parameters, error));
}
--
1.5.6.5
More information about the farsight-commits
mailing list