mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
sctp elements: avoid assertions on shutdown
This commit is contained in:
parent
1f662b24a2
commit
01216845c7
2 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue