summaryrefslogtreecommitdiffstats
path: root/libmpdemux/rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/rtp.c')
-rw-r--r--libmpdemux/rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/rtp.c b/libmpdemux/rtp.c
index ec73952e97..d2a5612c0b 100644
--- a/libmpdemux/rtp.c
+++ b/libmpdemux/rtp.c
@@ -78,7 +78,7 @@ static int rtp_open_socket( URL_t *url ) {
mp_msg(MSGT_NETWORK,MSGL_ERR,"Counldn't resolve name: %s\n", url->hostname);
goto err_out;
}
- memcpy( (void*)&server_address.sin_addr.s_addr, (void*)hp->h_addr, hp->h_length );
+ memcpy( (void*)&server_address.sin_addr.s_addr, (void*)hp->h_addr_list[0], hp->h_length );
#else
server_address.sin_addr.s_addr = htonl(INADDR_ANY);
#endif