obs-output: Fix compiler warnings
* obs-output: Fix unused-parameter warning * obs-output: Fix pointer type mismatch warning
This commit is contained in:
parent
ce62240530
commit
16e19d2e9c
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user