sctp elements: avoid assertions on shutdown
This commit is contained in:
parent
1f662b24a2
commit
01216845c7
@ -633,8 +633,9 @@ static void
|
|||||||
sctpdec_cleanup (GstSctpDec * self)
|
sctpdec_cleanup (GstSctpDec * self)
|
||||||
{
|
{
|
||||||
if (self->sctp_association) {
|
if (self->sctp_association) {
|
||||||
gst_sctp_association_set_on_packet_received (self->sctp_association, NULL,
|
/* FIXME: make this threadsafe */
|
||||||
NULL);
|
/* gst_sctp_association_set_on_packet_received (self->sctp_association, NULL,
|
||||||
|
NULL); */
|
||||||
g_signal_handler_disconnect (self->sctp_association,
|
g_signal_handler_disconnect (self->sctp_association,
|
||||||
self->signal_handler_stream_reset);
|
self->signal_handler_stream_reset);
|
||||||
stop_all_srcpad_tasks (self);
|
stop_all_srcpad_tasks (self);
|
||||||
|
@ -862,7 +862,9 @@ sctpenc_cleanup (GstSctpEnc * self)
|
|||||||
{
|
{
|
||||||
GstIterator *it;
|
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,
|
g_signal_handler_disconnect (self->sctp_association,
|
||||||
self->signal_handler_state_changed);
|
self->signal_handler_state_changed);
|
||||||
stop_srcpad_task (self->src_pad, self);
|
stop_srcpad_task (self->src_pad, self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user