diff -r 9b2c3c7a1a9c -r 567bb019e3e3 gst_plugins_base/gst/tcp/gsttcpclientsink.c
--- a/gst_plugins_base/gst/tcp/gsttcpclientsink.c Wed Mar 31 22:03:18 2010 +0300
+++ b/gst_plugins_base/gst/tcp/gsttcpclientsink.c Tue Aug 31 15:30:33 2010 +0300
@@ -18,14 +18,25 @@
* Boston, MA 02111-1307, USA.
*/
+/**
+ * SECTION:element-tcpclientsink
+ * @see_also: #tcpclientsrc
+ *
+ *
+ * Example launch line
+ * |[
+ * # server:
+ * nc -l -p 3000
+ * # client:
+ * gst-launch fdsrc fd=1 ! tcpclientsink protocol=none port=3000
+ * ]| everything you type in the client is shown on the server
+ *
+ */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#ifdef __SYMBIAN32__
-#include "gst/gst-i18n-plugin.h"
-#else
#include
-#endif
#include
#include "gsttcp.h"
#include "gsttcpclientsink.h"
@@ -146,13 +157,15 @@
g_object_class_install_property (gobject_class, ARG_HOST,
g_param_spec_string ("host", "Host", "The host/IP to send the packets to",
- TCP_DEFAULT_HOST, G_PARAM_READWRITE));
+ TCP_DEFAULT_HOST, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_PORT,
g_param_spec_int ("port", "Port", "The port to send the packets to",
- 0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
+ 0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_PROTOCOL,
g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in",
- GST_TYPE_TCP_PROTOCOL, GST_TCP_PROTOCOL_NONE, G_PARAM_READWRITE));
+ GST_TYPE_TCP_PROTOCOL, GST_TCP_PROTOCOL_NONE,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gstelement_class->change_state = gst_tcp_client_sink_change_state;