MT#55283 duplicate cache PTs into cache arena

Closes #2074

Change-Id: I62946675c5b6c4367ca884dcf346a0f6f6c712a7
(cherry picked from commit ce029008f8)
mr14.1
Richard Fuchs 2 months ago
parent 13f82df819
commit b51cf44dd0

@ -913,6 +913,12 @@ static bool media_player_cache_entry_init(struct media_player *mp, const rtp_pay
entry->coder.handler->packet_encoded = media_player_packet_cache;
call_memory_arena_release();
memory_arena = &entry->arena;
codec_init_payload_type(&entry->coder.handler->source_pt, MT_UNKNOWN);
codec_init_payload_type(&entry->coder.handler->dest_pt, MT_UNKNOWN);
call_memory_arena_set(mp->call);
// use low priority (10 nice)
thread_create_detach_prio(media_player_cache_entry_decoder_thread, obj_get(entry), NULL, 10, "mp decoder");

Loading…
Cancel
Save