sctp elements: avoid assertions on shutdown

This commit is contained in:
Mathieu Duponchelle 2018-09-13 19:56:47 +02:00 committed by Matthew Waters
parent 1f662b24a2
commit 01216845c7
2 changed files with 6 additions and 3 deletions

View file

@ -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);

View file

@ -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);