mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-21 06:59:59 -05:00
rtp: Don't use cookie for SSRC
Publishing the cookie on multicast seems to be a bad idea. Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
a9a3f0874a
commit
7766f0e8d7
4 changed files with 4 additions and 7 deletions
|
|
@ -43,14 +43,14 @@
|
|||
|
||||
#include "rtp.h"
|
||||
|
||||
int pa_rtp_context_init_send(pa_rtp_context *c, int fd, uint32_t ssrc, uint8_t payload, size_t frame_size) {
|
||||
int pa_rtp_context_init_send(pa_rtp_context *c, int fd, uint8_t payload, size_t frame_size) {
|
||||
pa_assert(c);
|
||||
pa_assert(fd >= 0);
|
||||
|
||||
c->fd = fd;
|
||||
c->sequence = (uint16_t) (rand()*rand());
|
||||
c->timestamp = 0;
|
||||
c->ssrc = ssrc ? ssrc : (uint32_t) (rand()*rand());
|
||||
c->ssrc = (uint32_t) (rand()*rand());
|
||||
c->payload = (uint8_t) (payload & 127U);
|
||||
c->frame_size = frame_size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue