obs-output: Fix compiler warnings

* obs-output: Fix unused-parameter warning

* obs-output: Fix pointer type mismatch warning
This commit is contained in:
tytan652 2021-12-23 20:17:22 +01:00 committed by Jim
parent ce62240530
commit 16e19d2e9c
2 changed files with 9 additions and 2 deletions

View File

@ -118,8 +118,13 @@ bool netif_str_to_addr(struct sockaddr_storage *out, int *addr_len,
#else
*addr_len = ipv6 ? sizeof(struct sockaddr_in6)
: sizeof(struct sockaddr_in);
void *dst = ipv6 ? &((struct sockaddr_in6 *)out)->sin6_addr
: &((struct sockaddr_in *)out)->sin_addr;
void *dst = NULL;
if (ipv6)
dst = &((struct sockaddr_in6 *)out)->sin6_addr;
else
dst = &((struct sockaddr_in *)out)->sin_addr;
if (inet_pton(out->ss_family, addr, dst))
return true;

View File

@ -280,6 +280,8 @@ static void reinsert_packet_at_front(struct rtmp_stream *stream,
static bool process_recv_data(struct rtmp_stream *stream, size_t size)
{
UNUSED_PARAMETER(size);
RTMP *rtmp = &stream->rtmp;
RTMPPacket packet = {0};