mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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 = gst_tag_list_new_empty ();
|
||||||
enc->priv->tags_changed = FALSE;
|
enc->priv->tags_changed = FALSE;
|
||||||
|
|
||||||
if (!enc->priv->active && klass->start)
|
if (!enc->priv->active) {
|
||||||
result = klass->start (enc);
|
if (klass->start)
|
||||||
|
result = klass->start (enc);
|
||||||
|
else
|
||||||
|
result = TRUE;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
/* We must make sure streaming has finished before resetting things
|
/* We must make sure streaming has finished before resetting things
|
||||||
* and calling the ::stop vfunc */
|
* and calling the ::stop vfunc */
|
||||||
|
|
Loading…
Reference in a new issue