mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
omxaudioenc: update local port_def after reopening the component
gst_omx_audio_enc_open will only update GstOMXAudioEnc->port->port_def. Note that the component is reopen only if the flag GST_OMX_HACK_NO_COMPONENT_RECONFIGURE is set. https://bugzilla.gnome.org/show_bug.cgi?id=782418
This commit is contained in:
parent
786a2617b2
commit
c7e66b473f
1 changed files with 3 additions and 0 deletions
|
@ -690,6 +690,9 @@ gst_omx_audio_enc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
|
||||||
if (!gst_omx_audio_enc_open (GST_AUDIO_ENCODER (self)))
|
if (!gst_omx_audio_enc_open (GST_AUDIO_ENCODER (self)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
needs_disable = FALSE;
|
needs_disable = FALSE;
|
||||||
|
|
||||||
|
/* The local port_def is now obsolete so get it again. */
|
||||||
|
gst_omx_port_get_port_definition (self->enc_in_port, &port_def);
|
||||||
} else {
|
} else {
|
||||||
if (gst_omx_port_set_enabled (self->enc_in_port, FALSE) != OMX_ErrorNone)
|
if (gst_omx_port_set_enabled (self->enc_in_port, FALSE) != OMX_ErrorNone)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue