dtls: use GST_WARNING instead of g_warning

No need a g_warning which is failing always
with gst-inspect -a

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2010>
This commit is contained in:
Stéphane Cerveau 2021-02-08 12:24:58 +01:00 committed by GStreamer Merge Bot
parent 5a03862fca
commit 5d4e45fe36
3 changed files with 16 additions and 5 deletions

View file

@ -218,7 +218,8 @@ gst_dtls_srtp_bin_get_property (GObject * object,
g_object_get_property (G_OBJECT (self->dtls_element), "connection-id",
value);
} else {
g_warning ("tried to get connection-id after disabling DTLS");
GST_WARNING_OBJECT (self,
"tried to get connection-id after disabling DTLS");
}
break;
case PROP_KEY:

View file

@ -288,8 +288,13 @@ gst_dtls_srtp_dec_get_property (GObject * object,
}
break;
case PROP_CONNECTION_STATE:
if (self->bin.dtls_element) {
g_object_get_property (G_OBJECT (self->bin.dtls_element),
"connection-state", value);
} else {
GST_WARNING_OBJECT (self,
"tried to get connection-state after disabling DTLS");
}
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (self, prop_id, pspec);

View file

@ -327,8 +327,13 @@ gst_dtls_srtp_enc_get_property (GObject * object,
}
break;
case PROP_CONNECTION_STATE:
if (self->bin.dtls_element) {
g_object_get_property (G_OBJECT (self->bin.dtls_element),
"connection-state", value);
} else {
GST_WARNING_OBJECT (self,
"tried to get connection-state after disabling DTLS");
}
break;
case PROP_RTP_SYNC:
g_value_set_boolean (value, self->rtp_sync);