sctpenc: Use g_signal_emit() instead of g_signal_emit_by_name()

We have all the required information around so make use of it.
This commit is contained in:
Sebastian Dröge 2020-01-30 15:59:12 +02:00
parent 90e9f12880
commit 16ec86faf0

View file

@ -810,7 +810,8 @@ on_sctp_association_state_changed (GstSctpAssociation * sctp_association,
case GST_SCTP_ASSOCIATION_STATE_CONNECTING:
break;
case GST_SCTP_ASSOCIATION_STATE_CONNECTED:
g_signal_emit_by_name (self, "sctp-association-established", TRUE);
g_signal_emit (self, signals[SIGNAL_SCTP_ASSOCIATION_ESTABLISHED], 0,
TRUE);
break;
case GST_SCTP_ASSOCIATION_STATE_DISCONNECTING:
g_signal_emit (self, signals[SIGNAL_SCTP_ASSOCIATION_ESTABLISHED], 0,