TT#91151 fix wrong hash table lookup object being used

fixes 8abc6b1c

Change-Id: Id38636308c9c6f37b95829911af71148ca3256ce
pull/1194/head
Richard Fuchs 5 years ago
parent ab54b774ed
commit fa6d29b45c

@ -1613,7 +1613,7 @@ static void media_packet_rtp(struct packet_handler_ctx *phc)
// XXX yet another hash table per payload type -> combine
struct rtp_stats *rtp_s = g_atomic_pointer_get(&phc->mp.stream->rtp_stats_cache);
if (G_UNLIKELY(!rtp_s) || G_UNLIKELY(rtp_s->payload_type != phc->payload_type))
rtp_s = g_hash_table_lookup(phc->mp.stream->rtp_stats, &phc->payload_type);
rtp_s = g_hash_table_lookup(phc->mp.stream->rtp_stats, GINT_TO_POINTER(phc->payload_type));
if (!rtp_s) {
ilog(LOG_WARNING | LOG_FLAG_LIMIT,
"RTP packet with unknown payload type %u received from %s%s%s",

Loading…
Cancel
Save