mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
audioencoder: don't fail if the start vfunc is not implemented
Fix behaviour to match documentation and decoder class behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=685490
This commit is contained in:
parent
e873435ce0
commit
795d366a0c
1 changed files with 6 additions and 2 deletions
|
@ -1971,8 +1971,12 @@ gst_audio_encoder_activate (GstAudioEncoder * enc, gboolean active)
|
|||
enc->priv->tags = gst_tag_list_new_empty ();
|
||||
enc->priv->tags_changed = FALSE;
|
||||
|
||||
if (!enc->priv->active && klass->start)
|
||||
result = klass->start (enc);
|
||||
if (!enc->priv->active) {
|
||||
if (klass->start)
|
||||
result = klass->start (enc);
|
||||
else
|
||||
result = TRUE;
|
||||
}
|
||||
} else {
|
||||
/* We must make sure streaming has finished before resetting things
|
||||
* and calling the ::stop vfunc */
|
||||
|
|
Loading…
Reference in a new issue