summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Carot-Nemesio <sancane@gmail.com>2015-06-05 13:50:34 (GMT)
committerSebastian Dröge <sebastian@centricular.com>2015-06-05 14:20:17 (GMT)
commit2ddc811bfada4d697534cbeab8b2370b6668134d (patch)
tree33a5f40aa26f5168e187b50afa3326e4e74df13b
parent962f2be9989526cad3daedb56156ed296d065455 (diff)
downloadopenwebrtc-gst-plugins-2ddc811bfada4d697534cbeab8b2370b6668134d.tar.gz
openwebrtc-gst-plugins-2ddc811bfada4d697534cbeab8b2370b6668134d.tar.xz
sctp: Fix warnings setting callbacks when cleaning up the aassociation
Do not set either packet or receive callbacks when cleaning up so theu can only be set when state is GST_SCTP_ASSOCIATION_STATE_NEW. https://github.com/EricssonResearch/openwebrtc-gst-plugins/pull/41
-rw-r--r--ext/sctp/gstsctpdec.c1
-rw-r--r--ext/sctp/gstsctpenc.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/ext/sctp/gstsctpdec.c b/ext/sctp/gstsctpdec.c
index 3cc2c44..676f7a0 100644
--- a/ext/sctp/gstsctpdec.c
+++ b/ext/sctp/gstsctpdec.c
@@ -581,7 +581,6 @@ static void stop_all_srcpad_tasks(GstSctpDec *self)
static void sctpdec_cleanup(GstSctpDec *self)
{
if (self->sctp_association) {
- 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);
gst_sctp_association_force_close(self->sctp_association);
diff --git a/ext/sctp/gstsctpenc.c b/ext/sctp/gstsctpenc.c
index f81b94f..0d3ddb6 100644
--- a/ext/sctp/gstsctpenc.c
+++ b/ext/sctp/gstsctpenc.c
@@ -782,7 +782,6 @@ static void sctpenc_cleanup(GstSctpEnc *self)
{
GstIterator *it;
- 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);
gst_sctp_association_force_close(self->sctp_association);