mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
5a03862fca
commit
5d4e45fe36
3 changed files with 16 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -288,8 +288,13 @@ gst_dtls_srtp_dec_get_property (GObject * object,
|
|||
}
|
||||
break;
|
||||
case PROP_CONNECTION_STATE:
|
||||
g_object_get_property (G_OBJECT (self->bin.dtls_element),
|
||||
"connection-state", value);
|
||||
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);
|
||||
|
|
|
@ -327,8 +327,13 @@ gst_dtls_srtp_enc_get_property (GObject * object,
|
|||
}
|
||||
break;
|
||||
case PROP_CONNECTION_STATE:
|
||||
g_object_get_property (G_OBJECT (self->bin.dtls_element),
|
||||
"connection-state", value);
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue