mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
opusenc: do not throw g_warning when getting deprecated properties
https://bugzilla.gnome.org/show_bug.cgi?id=754819
This commit is contained in:
parent
f1cbca9480
commit
16e93d206f
1 changed files with 8 additions and 3 deletions
|
@ -1035,12 +1035,13 @@ gst_opus_enc_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
g_value_set_enum (value, enc->frame_size);
|
||||
break;
|
||||
case PROP_CBR:
|
||||
g_warning ("cbr property is deprecated; use bitrate-type instead");
|
||||
GST_WARNING_OBJECT (enc,
|
||||
"cbr property is deprecated; use bitrate-type instead");
|
||||
g_value_set_boolean (value, enc->bitrate_type == BITRATE_TYPE_CBR);
|
||||
break;
|
||||
case PROP_CONSTRAINED_VBR:
|
||||
g_warning
|
||||
("constrained-vbr property is deprecated; use bitrate-type instead");
|
||||
GST_WARNING_OBJECT (enc,
|
||||
"constrained-vbr property is deprecated; use bitrate-type instead");
|
||||
g_value_set_boolean (value,
|
||||
enc->bitrate_type == BITRATE_TYPE_CONSTRAINED_VBR);
|
||||
break;
|
||||
|
@ -1110,6 +1111,8 @@ gst_opus_enc_set_property (GObject * object, guint prop_id,
|
|||
g_mutex_unlock (&enc->property_lock);
|
||||
break;
|
||||
case PROP_CBR:
|
||||
GST_WARNING_OBJECT (enc,
|
||||
"cbr property is deprecated; use bitrate-type instead");
|
||||
g_warning ("cbr property is deprecated; use bitrate-type instead");
|
||||
g_mutex_lock (&enc->property_lock);
|
||||
enc->bitrate_type = BITRATE_TYPE_CBR;
|
||||
|
@ -1121,6 +1124,8 @@ gst_opus_enc_set_property (GObject * object, guint prop_id,
|
|||
g_mutex_unlock (&enc->property_lock);
|
||||
break;
|
||||
case PROP_CONSTRAINED_VBR:
|
||||
GST_WARNING_OBJECT (enc,
|
||||
"constrained-vbr property is deprecated; use bitrate-type instead");
|
||||
g_warning
|
||||
("constrained-vbr property is deprecated; use bitrate-type instead");
|
||||
g_mutex_lock (&enc->property_lock);
|
||||
|
|
Loading…
Reference in a new issue