srt: Fix signal args mismatch

client-added and client-{removed,closed} signals were defined
to be emitted with two arguments (socket fd and address)

https://bugzilla.gnome.org/show_bug.cgi?id=796842
This commit is contained in:
Seungha Yang 2018-07-28 18:06:08 +09:00 committed by Olivier Crête
parent d8015586b5
commit 8e18175080
2 changed files with 5 additions and 4 deletions

View file

@ -48,8 +48,8 @@ struct _GstSRTServerSink {
struct _GstSRTServerSinkClass {
GstSRTBaseSinkClass parent_class;
void (*client_added) (GstSRTServerSink *self, int sock, struct sockaddr *addr, int addr_len);
void (*client_removed) (GstSRTServerSink *self, int sock, struct sockaddr *addr, int addr_len);
void (*client_added) (GstSRTServerSink *self, int sock, GSocketAddress *addr);
void (*client_removed) (GstSRTServerSink *self, int sock, GSocketAddress *addr);
gpointer _gst_reserved[GST_PADDING_LARGE];
};

View file

@ -22,6 +22,7 @@
#define __GST_SRT_SERVER_SRC_H__
#include "gstsrtbasesrc.h"
#include <gio/gio.h>
#include <srt/srt.h>
G_BEGIN_DECLS
@ -49,8 +50,8 @@ struct _GstSRTServerSrc {
struct _GstSRTServerSrcClass {
GstSRTBaseSrcClass parent_class;
void (*client_added) (GstSRTServerSrc *self, int sock, struct sockaddr *addr, int addr_len);
void (*client_closed) (GstSRTServerSrc *self, int sock, struct sockaddr *addr, int addr_len);
void (*client_added) (GstSRTServerSrc *self, int sock, GSocketAddress *addr);
void (*client_closed) (GstSRTServerSrc *self, int sock, GSocketAddress *addr);
gpointer _gst_reserved[GST_PADDING_LARGE];
};