Opened 9 years ago

Last modified 7 years ago

#1403 new defect

Bind failed when lauching mplayer with rtp url

Reported by: konks@… Owned by: reimar
Priority: normal Component: streaming
Version: unspecified Severity: blocker
Keywords: Cc: konks@…
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

When you launch mplayer with : "mplayer rtp://W.X.Y.Z:port", the program exit with the error "Failed to connect to server".

The solution is BSD specific (as the problem seems to appear only on BSD platform):
You must do a "bzero(&server_address, sizeof(struct sockaddr_in);" in the udp_open_stream() in stream/udp.c before using the structure server_address.
Zeroing the struct before using it with bind() is required on BSD platform (with bzero() or memcpy()).

Regards,
Sebastien

Change History (1)

comment:1 Changed 7 years ago by compn

  • Owner changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.