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

srt: add authentication to srtsink and srtsrc elements #6

Open
wants to merge 1 commit into
base: ubuntu/focal
Choose a base branch
from

Conversation

raghaven447
Copy link

No description provided.

ext/srt/gstsrtobject.c Show resolved Hide resolved
ext/srt/gstsrtsink.c Outdated Show resolved Hide resolved
ext/srt/gstsrtobject.c Outdated Show resolved Hide resolved
ext/srt/gstsrtsrc.c Outdated Show resolved Hide resolved
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
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
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.

return 0;
reject:
/* notifying caller-rejected */
g_signal_emit_by_name (self->element, "caller-rejected");
Copy link
Collaborator

@xhaakon xhaakon Oct 26, 2020

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.

3 participants