sctpenc: Use g_signal_emit() instead of g_signal_emit_by_name()
authorSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jan 2020 13:59:12 +0000 (15:59 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jan 2020 13:59:12 +0000 (15:59 +0200)
We have all the required information around so make use of it.

ext/sctp/gstsctpenc.c

index 48df206..fa7cbd2 100644 (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,