use AI_ADDRCONFIG with getaddrinfo()

Fixes IPv4 systems with IPv6 present but disabled.
Fix courtesy of Quentin Smart (sm3rt)
fix audio buffer allocation

...and make the implicit data dependency on frame_bytes more obvious
fix compile warning
rtsp: set playing_thread safely