mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
opusenc: fix crash when setting "cbr" property when encoder is not running yet
https://bugzilla.gnome.org/show_bug.cgi?id=692698
This commit is contained in:
parent
74d1f8a400
commit
32893dd95e
1 changed files with 2 additions and 1 deletions
|
@ -996,7 +996,8 @@ gst_opus_enc_set_property (GObject * object, guint prop_id,
|
|||
/* this one has an opposite meaning to the opus ctl... */
|
||||
g_mutex_lock (&enc->property_lock);
|
||||
enc->cbr = g_value_get_boolean (value);
|
||||
opus_multistream_encoder_ctl (enc->state, OPUS_SET_VBR (!enc->cbr));
|
||||
if (enc->state)
|
||||
opus_multistream_encoder_ctl (enc->state, OPUS_SET_VBR (!enc->cbr));
|
||||
g_mutex_unlock (&enc->property_lock);
|
||||
break;
|
||||
case PROP_CONSTRAINED_VBR:
|
||||
|
|
Loading…
Reference in a new issue