dtls: Use unique names for internal elements to ease debugging
https://bugzilla.gnome.org/show_bug.cgi?id=748651
This commit is contained in:
parent
7a599df9f4
commit
d2ef3a4c19
@ -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) {
|
if (!self->srtp_dec) {
|
||||||
GST_ERROR_OBJECT (self,
|
GST_ERROR_OBJECT (self,
|
||||||
"failed to create srtp_dec, is the srtp plugin registered?");
|
"failed to create srtp_dec, is the srtp plugin registered?");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self->dtls_srtp_demux =
|
self->dtls_srtp_demux =
|
||||||
gst_element_factory_make ("dtlssrtpdemux", "dtls-srtp-demux");
|
gst_element_factory_make ("dtlssrtpdemux", NULL);
|
||||||
if (!self->dtls_srtp_demux) {
|
if (!self->dtls_srtp_demux) {
|
||||||
GST_ERROR_OBJECT (self, "failed to create dtls_srtp_demux");
|
GST_ERROR_OBJECT (self, "failed to create dtls_srtp_demux");
|
||||||
return;
|
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) {
|
if (!self->bin.dtls_element) {
|
||||||
GST_ERROR_OBJECT (self, "failed to create dtls_dec");
|
GST_ERROR_OBJECT (self, "failed to create dtls_dec");
|
||||||
return;
|
return;
|
||||||
|
@ -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) {
|
if (!self->srtp_enc) {
|
||||||
GST_ERROR_OBJECT (self,
|
GST_ERROR_OBJECT (self,
|
||||||
"failed to create srtp encoder, is the srtp plugin registered?");
|
"failed to create srtp encoder, is the srtp plugin registered?");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_return_if_fail (self->srtp_enc);
|
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) {
|
if (!self->bin.dtls_element) {
|
||||||
GST_ERROR_OBJECT (self, "failed to create dtls encoder");
|
GST_ERROR_OBJECT (self, "failed to create dtls encoder");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self->funnel = gst_element_factory_make ("funnel", "funnel");
|
self->funnel = gst_element_factory_make ("funnel", NULL);
|
||||||
if (!self->funnel) {
|
if (!self->funnel) {
|
||||||
GST_ERROR_OBJECT (self, "failed to create funnel");
|
GST_ERROR_OBJECT (self, "failed to create funnel");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user