mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtprtxreceive: simplify the code of finalize()
This commit is contained in:
parent
0fdae5f2f7
commit
513ffc45b5
1 changed files with 2 additions and 12 deletions
|
@ -230,18 +230,8 @@ gst_rtp_rtx_receive_finalize (GObject * object)
|
|||
{
|
||||
GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE (object);
|
||||
|
||||
gst_rtp_rtx_receive_reset (rtx);
|
||||
|
||||
if (rtx->ssrc2_ssrc1_map) {
|
||||
g_hash_table_destroy (rtx->ssrc2_ssrc1_map);
|
||||
rtx->ssrc2_ssrc1_map = NULL;
|
||||
}
|
||||
|
||||
if (rtx->seqnum_ssrc1_map) {
|
||||
g_hash_table_destroy (rtx->seqnum_ssrc1_map);
|
||||
rtx->seqnum_ssrc1_map = NULL;
|
||||
}
|
||||
|
||||
g_hash_table_unref (rtx->ssrc2_ssrc1_map);
|
||||
g_hash_table_unref (rtx->seqnum_ssrc1_map);
|
||||
g_hash_table_unref (rtx->rtx_pt_map);
|
||||
if (rtx->pending_rtx_pt_map)
|
||||
gst_structure_free (rtx->pending_rtx_pt_map);
|
||||
|
|
Loading…
Reference in a new issue