Commit 2a2acedd authored by Sebastian Dröge's avatar Sebastian Dröge

tcpclientsink: Port to GIO

parent 075ec8b4
This diff is collapsed.
......@@ -25,25 +25,12 @@
#include <gst/gst.h>
#include <gst/base/gstbasesink.h>
#include <gio/gio.h>
#include "gsttcp.h"
G_BEGIN_DECLS
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <arpa/inet.h>
#include "gsttcp.h"
#define GST_TYPE_TCP_CLIENT_SINK \
(gst_tcp_client_sink_get_type())
#define GST_TCP_CLIENT_SINK(obj) \
......@@ -70,13 +57,12 @@ struct _GstTCPClientSink {
/* server information */
int port;
gchar *host;
struct sockaddr_in server_sin;
/* socket */
GstPollFD sock_fd;
GSocket *socket;
GCancellable *cancellable;
size_t data_written; /* how much bytes have we written ? */
gboolean caps_sent; /* whether or not we sent caps already */
};
struct _GstTCPClientSinkClass {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment