summaryrefslogtreecommitdiff
path: root/gst/tcp/gsttcpclientsrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/tcp/gsttcpclientsrc.h')
-rw-r--r--gst/tcp/gsttcpclientsrc.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/gst/tcp/gsttcpclientsrc.h b/gst/tcp/gsttcpclientsrc.h
index 77d57020d..6f1750647 100644
--- a/gst/tcp/gsttcpclientsrc.h
+++ b/gst/tcp/gsttcpclientsrc.h
@@ -25,15 +25,9 @@
#include <gst/gst.h>
#include <gst/base/gstpushsrc.h>
-G_BEGIN_DECLS
-
-#include <netdb.h> /* sockaddr_in */
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h> /* sockaddr_in */
-#include <unistd.h>
+#include <gio/gio.h>
-#include "gsttcp.h"
+G_BEGIN_DECLS
#define GST_TYPE_TCP_CLIENT_SRC \
(gst_tcp_client_src_get_type())
@@ -50,9 +44,9 @@ typedef struct _GstTCPClientSrc GstTCPClientSrc;
typedef struct _GstTCPClientSrcClass GstTCPClientSrcClass;
typedef enum {
- GST_TCP_CLIENT_SRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0),
+ GST_TCP_CLIENT_SRC_OPEN = (GST_BASE_SRC_FLAG_LAST << 0),
- GST_TCP_CLIENT_SRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2)
+ GST_TCP_CLIENT_SRC_FLAG_LAST = (GST_BASE_SRC_FLAG_LAST << 2)
} GstTCPClientSrcFlags;
struct _GstTCPClientSrc {
@@ -61,14 +55,10 @@ struct _GstTCPClientSrc {
/* server information */
int port;
gchar *host;
- struct sockaddr_in server_sin;
/* socket */
- GstPollFD sock_fd;
- GstPoll *fdset;
-
- gboolean caps_received; /* if we have received caps yet */
- GstCaps *caps;
+ GSocket *socket;
+ GCancellable *cancellable;
};
struct _GstTCPClientSrcClass {