dtls: Use unique names for internal elements to ease debugging

https://bugzilla.gnome.org/show_bug.cgi?id=748651
This commit is contained in:
Santiago Carot-Nemesio 2016-04-04 11:28:35 +02:00 committed by Tim-Philipp Müller
parent 7a599df9f4
commit d2ef3a4c19
2 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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;