From: George Kiagiadakis Date: Tue, 14 Jan 2014 10:55:00 +0000 (+0100) Subject: rtprtxreceive: simplify the code of finalize() X-Git-Tag: 1.19.3~509^2~4915 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=513ffc45b5a6cec2f23ff68a673e75f92e8a3c8c;p=platform%2Fupstream%2Fgstreamer.git rtprtxreceive: simplify the code of finalize() --- diff --git a/gst/rtpmanager/gstrtprtxreceive.c b/gst/rtpmanager/gstrtprtxreceive.c index 72fc152..ba1bb3a 100644 --- a/gst/rtpmanager/gstrtprtxreceive.c +++ b/gst/rtpmanager/gstrtprtxreceive.c @@ -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);