Skip to content

Commit b51cf44

Browse files
committed
MT#55283 duplicate cache PTs into cache arena
Closes #2074 Change-Id: I62946675c5b6c4367ca884dcf346a0f6f6c712a7 (cherry picked from commit ce02900)
1 parent 13f82df commit b51cf44

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

daemon/media_player.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,12 @@ static bool media_player_cache_entry_init(struct media_player *mp, const rtp_pay
913913

914914
entry->coder.handler->packet_encoded = media_player_packet_cache;
915915

916+
call_memory_arena_release();
917+
memory_arena = &entry->arena;
918+
codec_init_payload_type(&entry->coder.handler->source_pt, MT_UNKNOWN);
919+
codec_init_payload_type(&entry->coder.handler->dest_pt, MT_UNKNOWN);
920+
call_memory_arena_set(mp->call);
921+
916922
// use low priority (10 nice)
917923
thread_create_detach_prio(media_player_cache_entry_decoder_thread, obj_get(entry), NULL, 10, "mp decoder");
918924

0 commit comments

Comments
 (0)