multihandlesink: rework to use Handle

parent d4429ece
This diff is collapsed.
......@@ -52,7 +52,7 @@ typedef struct _GstMultiFdSinkClass GstMultiFdSinkClass;
typedef struct {
GstMultiHandleClient client;
GstPollFD fd;
GstPollFD gfd;
gboolean is_socket;
} GstTCPClient;
......@@ -66,7 +66,7 @@ struct _GstMultiFdSink {
GstMultiHandleSink element;
/*< private >*/
GHashTable *fd_hash; /* index on fd to client */
GHashTable *handle_hash; /* index on fd to client */
gint mode;
GstPoll *fdset;
......
......@@ -130,6 +130,8 @@ typedef union
/* structure for a client
*/
typedef struct {
GstMultiSinkHandle handle;
gchar debug[30]; /* a debug string used in debug calls to
identify the client */
gint bufpos; /* position of this client in the global queue */
......@@ -278,6 +280,7 @@ struct _GstMultiHandleSinkClass {
GstBuffer *buffer);
int (*client_get_fd)
(GstMultiHandleClient *client);
void (*handle_debug) (GstMultiSinkHandle handle, gchar debug[30]);
GstStructure* (*get_stats) (GstMultiHandleSink *sink, GstMultiSinkHandle handle);
......
This diff is collapsed.
......@@ -55,7 +55,6 @@ typedef struct _GstMultiSocketSinkClass GstMultiSocketSinkClass;
typedef struct {
GstMultiHandleClient client;
GstMultiSinkHandle handle;
GSource *source;
} GstSocketClient;
......@@ -68,7 +67,7 @@ struct _GstMultiSocketSink {
GstMultiHandleSink element;
/*< private >*/
GHashTable *socket_hash; /* index on socket to client */
GHashTable *handle_hash; /* index on socket to client */
GMainContext *main_context;
GCancellable *cancellable;
......
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