From: Santiago Carot-Nemesio Date: Mon, 4 Apr 2016 09:28:35 +0000 (+0200) Subject: dtls: Use unique names for internal elements to ease debugging X-Git-Tag: 1.19.3~507^2~6784 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2ef3a4c19a84e45f1e43fecf931b4bcc5008433;p=platform%2Fupstream%2Fgstreamer.git dtls: Use unique names for internal elements to ease debugging https://bugzilla.gnome.org/show_bug.cgi?id=748651 --- diff --git a/ext/dtls/gstdtlssrtpdec.c b/ext/dtls/gstdtlssrtpdec.c index 2ff8a58..300fb9c 100644 --- a/ext/dtls/gstdtlssrtpdec.c +++ b/ext/dtls/gstdtlssrtpdec.c @@ -165,19 +165,19 @@ gst_dtls_srtp_dec_init (GstDtlsSrtpDec * self) +-----------+ */ - self->srtp_dec = gst_element_factory_make ("srtpdec", "srtp-decoder"); + self->srtp_dec = gst_element_factory_make ("srtpdec", NULL); if (!self->srtp_dec) { GST_ERROR_OBJECT (self, "failed to create srtp_dec, is the srtp plugin registered?"); return; } self->dtls_srtp_demux = - gst_element_factory_make ("dtlssrtpdemux", "dtls-srtp-demux"); + gst_element_factory_make ("dtlssrtpdemux", NULL); if (!self->dtls_srtp_demux) { GST_ERROR_OBJECT (self, "failed to create dtls_srtp_demux"); return; } - self->bin.dtls_element = gst_element_factory_make ("dtlsdec", "dtls-decoder"); + self->bin.dtls_element = gst_element_factory_make ("dtlsdec", NULL); if (!self->bin.dtls_element) { GST_ERROR_OBJECT (self, "failed to create dtls_dec"); return; diff --git a/ext/dtls/gstdtlssrtpenc.c b/ext/dtls/gstdtlssrtpenc.c index 6c31325..237aec5 100644 --- a/ext/dtls/gstdtlssrtpenc.c +++ b/ext/dtls/gstdtlssrtpenc.c @@ -172,19 +172,19 @@ gst_dtls_srtp_enc_init (GstDtlsSrtpEnc * self) +--------------------+ +-----------------+ */ - self->srtp_enc = gst_element_factory_make ("srtpenc", "srtp-encoder"); + self->srtp_enc = gst_element_factory_make ("srtpenc", NULL); if (!self->srtp_enc) { GST_ERROR_OBJECT (self, "failed to create srtp encoder, is the srtp plugin registered?"); return; } g_return_if_fail (self->srtp_enc); - self->bin.dtls_element = gst_element_factory_make ("dtlsenc", "dtls-encoder"); + self->bin.dtls_element = gst_element_factory_make ("dtlsenc", NULL); if (!self->bin.dtls_element) { GST_ERROR_OBJECT (self, "failed to create dtls encoder"); return; } - self->funnel = gst_element_factory_make ("funnel", "funnel"); + self->funnel = gst_element_factory_make ("funnel", NULL); if (!self->funnel) { GST_ERROR_OBJECT (self, "failed to create funnel"); return;