From 01216845c7801226c484b1c733012c1d2eec727a Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 13 Sep 2018 19:56:47 +0200 Subject: sctp elements: avoid assertions on shutdown --- ext/sctp/gstsctpdec.c | 5 +++-- ext/sctp/gstsctpenc.c | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ext/sctp/gstsctpdec.c b/ext/sctp/gstsctpdec.c index ccc5ec12f..870a3ba00 100644 --- a/ext/sctp/gstsctpdec.c +++ b/ext/sctp/gstsctpdec.c @@ -633,8 +633,9 @@ static void sctpdec_cleanup (GstSctpDec * self) { if (self->sctp_association) { - gst_sctp_association_set_on_packet_received (self->sctp_association, NULL, - NULL); + /* FIXME: make this threadsafe */ + /* gst_sctp_association_set_on_packet_received (self->sctp_association, NULL, + NULL); */ g_signal_handler_disconnect (self->sctp_association, self->signal_handler_stream_reset); stop_all_srcpad_tasks (self); diff --git a/ext/sctp/gstsctpenc.c b/ext/sctp/gstsctpenc.c index b8a3fd2f5..ec33ca9ae 100644 --- a/ext/sctp/gstsctpenc.c +++ b/ext/sctp/gstsctpenc.c @@ -862,7 +862,9 @@ sctpenc_cleanup (GstSctpEnc * self) { GstIterator *it; - gst_sctp_association_set_on_packet_out (self->sctp_association, NULL, NULL); + /* FIXME: make this threadsafe */ + /* gst_sctp_association_set_on_packet_out (self->sctp_association, NULL, NULL); */ + g_signal_handler_disconnect (self->sctp_association, self->signal_handler_state_changed); stop_srcpad_task (self->src_pad, self); -- cgit v1.2.3