ejurgensen
3b00900572
[player] Add pkt->header_len in rtp_common
2021-01-10 14:51:16 +01:00
ejurgensen
06d1d7273d
[player] Add a basic RTCP parser for Chromecast packets
...
Also put the endian includes in the header, both raop.c and cast.c will need
them.
2020-11-18 23:13:00 +01:00
ejurgensen
5929938a18
[outputs] RTP: Distinguish clearly between payload type and marker bit
...
Also make quality an optional input to rtp_session_new(), since it isn't
required internally by the RTP module.
2020-11-18 23:13:00 +01:00
ejurgensen
6eb01f8ffc
[outputs] Remove incorrect NULL return if packet buffer seqnum is 0
...
Since seqnum wraps around it should be ok to call rtp_packet_get() even when
session->seqnum is 0.
2020-11-03 23:44:22 +01:00
ejurgensen
7a9f66538a
[raop] Extra comments + logging changes
2020-04-24 18:49:33 +02:00
ejurgensen
8070c2f68c
[outputs] Change rtp timespec arg to take value instead of pointer
2020-04-24 18:46:17 +02:00
ejurgensen
f9bfec180f
[raop] Fix possible infinite loop + wrong packet resend (fixes issue #775 )
...
Fixes bugs which were due to incorrect handling of unsigned integer wrap-around:
1. Calling packet_resend() with seqnum + len greater than UINT16_MAX => infinite loop
2. Calling rtp_packet_get() with session->seqnum - seqnum greater than pktbuf_next => wrong packet
2019-08-10 22:41:04 +02:00
ejurgensen
cf173df805
[outputs] Fix issue where RTP packet is not available for retransmit
...
Check for sequence number did not account for wrap around, so e.g. a
request for seqnum 65335 when first was 65100 and last was 100 would
not work.
2019-07-20 20:37:22 +02:00
ejurgensen
7d0ae01e84
[raop] Fixup forgotten free of pktbuffer
2019-03-22 23:25:34 +01:00
ejurgensen
9b6a892984
[rtp] Extra commenting about the RTP header
2019-03-18 23:06:08 +01:00
ejurgensen
e99f20992e
[player/outputs] Implement changed output interfaces in most backends
...
Still missing cast, alsa and pulseaudio, but these can so far just be
disabled with configure.
Otherwise still mostly untested.
2019-03-18 23:06:08 +01:00
ejurgensen
0cb3881621
[player/outputs/raop] Get rid of outputs_playback_start() (still WIP)
...
outputs_playback_start() had the problem that was not consistently invoked: If
for instance local audio playback was running and a Airplay device was then
activated, the raop's playback_start would never be invoked (and vice versa,
of course).
Instead, the player now writes the presentation timestamp every time to the
output, so it doesn't need to keep track of it from the start.
2019-03-18 23:06:08 +01:00
ejurgensen
7e48887adc
[rtp] Add RTP utility module: rtp_common.c rtp_common.h
...
Expectation is to use this for both Airplay and Chromecast RTP streaming
2019-03-18 23:06:08 +01:00