-
Notifications
You must be signed in to change notification settings - Fork 3
srt: add authentication to srtsink and srtsrc elements #6
base: ubuntu/focal
Are you sure you want to change the base?
Conversation
0355740
to
0023de5
Compare
0023de5
to
2b9b7be
Compare
static gint | ||
srt_listen_callback_func(GstSRTObject * self, SRTSOCKET sock, int hs_version, | ||
const struct sockaddr* peeraddr, const char* stream_id) { | ||
g_autoptr (GSocketAddress) addr = peeraddr_to_g_socket_address (peeraddr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think at least MSVC doesn't support g_autoptr
and the like. We couldn't care less for MSVC in Hwangsaeul, but in upstream GStreamer autocleanup is better avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the Hwangsaeul project supports only the Linux platform and the latest GLib, but GStreamer-wise, we should follow their rules.
return 0; | ||
reject: | ||
/* notifying caller-rejected */ | ||
g_signal_emit_by_name (self->element, "caller-rejected"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add some information that identify the rejected caller into the callback. Let's put addr
and stream_id
as parameters, same as "caller-connecting"
.
Backporting the upstream patches.
2b9b7be
to
0556285
Compare
No description provided.