refactor service_start to make it more modular
first draft for RTSP init using cURL
define iptv_rtsp_info struct
return it when it start, and ask it to stop RTSP stream
init rtsp when init iptv
rename multicast open to multicast start to match current name scheme
start rtsp if we recognize it's RTSP
implements simple is_* function to know what we are
change start signature to be able to open the socket
implement bind method to the correct port
separate stop functions
change a small test to return the correct value
call rtsp start with the pointer to the fd, rtsp open the socket itself
set curl write fuctions to NULL when asked
comment
add field for rtsp in service_t
try to find a free even port for RTP
client_port is now stored
we take care of free'd memory for rtsp_info
transport string is set correctly based on the free port we had
service quality is 100 if we are able to play it
parse client_port and server_port
check that client_port sent by server match our wish
move struct definition to header
add basic rtcp skeleton
update rtcp when receiving rtp packet
add rtcp_info in rtsp_info
save the server address
fix sequence number extraction