MT#55283 Fix segfault in play media with record-egress enabled

Closes #2086

Change-Id: Iad7b7297b2b24a76ca60f81393d6215c92dff612
(cherry picked from commit ff07591b37)
(cherry picked from commit cdf3625ffc)
mr12.5.1
Sean Ferguson 1 month ago committed by Richard Fuchs
parent b95d7a4d33
commit 8c8bd9bf3e

@ -315,6 +315,7 @@ static bool __send_timer_send_1(struct rtp_header *rh, struct packet_stream *sin
struct media_packet mp = {
.call = sink->call,
.stream = sink,
.media = sink->media,
.sfd = sink_fd,
.fsin = sink->endpoint,
};

@ -738,6 +738,8 @@ static void stream_pcap_dump(struct media_packet *mp, const str *s) {
}
static void dump_packet_pcap(struct media_packet *mp, const str *s) {
if (!mp->media || !mp->media->monologue)
return;
if (ML_ISSET(mp->media->monologue, NO_RECORDING))
return;
struct recording *recording = mp->call->recording;

@ -142,6 +142,7 @@ unit-tests: $(TESTS)
daemon-tests: daemon-tests-main daemon-tests-jb daemon-tests-pubsub daemon-tests-websocket \
daemon-tests-evs daemon-tests-async-tc \
daemon-tests-audio-player daemon-tests-audio-player-play-media \
daemon-tests-record-egress-play-media \
daemon-tests-intfs daemon-tests-stats daemon-tests-player-cache daemon-tests-redis \
daemon-tests-rtpp-flags daemon-tests-measure-rtp daemon-tests-heuristic daemon-tests-rtcp
@ -196,6 +197,9 @@ daemon-tests-audio-player: daemon-test-deps
daemon-tests-audio-player-play-media: daemon-test-deps
./auto-test-helper "$@" perl -I../perl auto-daemon-tests-audio-player-play-media.pl
daemon-tests-record-egress-play-media: daemon-test-deps
./auto-test-helper "$@" perl -I../perl auto-daemon-tests-record-egress-play-media.pl
daemon-tests-rtpp-flags: daemon-test-deps
./auto-test-helper "$@" perl -I../perl auto-daemon-tests-rtpp-flags.pl

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save