Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

srt: add authentication to srtsink and srtsrc elements - #6

Open
raghaven447 wants to merge 1 commit into
hwangsaeul:ubuntu/focalfrom
raghaven447:srt-dev-branch
Open

srt: add authentication to srtsink and srtsrc elements#6
raghaven447 wants to merge 1 commit into
hwangsaeul:ubuntu/focalfrom
raghaven447:srt-dev-branch

Conversation

@raghaven447

Copy link
Copy Markdown

No description provided.

Comment thread ext/srt/gstsrtobject.c
Comment thread ext/srt/gstsrtsink.c Outdated
Comment thread ext/srt/gstsrtobject.c Outdated
Comment thread ext/srt/gstsrtsrc.c Outdated
Comment thread ext/srt/gstsrtobject.c
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);

Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Member

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.

Comment thread ext/srt/gstsrtobject.c
return 0;
reject:
/* notifying caller-rejected */
g_signal_emit_by_name (self->element, "caller-rejected");

@xhaakon xhaakon Oct 26, 2020

Copy link
Copy Markdown
Collaborator

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".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants