mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
omxvideodec: update local port_def after reopening the component
gst_omx_video_dec_open will only update GstOMXVideoDec->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
a3805116df
commit
ebc9b4903c
1 changed files with 3 additions and 0 deletions
3
omx/gstomxvideodec.c
Normal file → Executable file
3
omx/gstomxvideodec.c
Normal file → Executable file
|
@ -1885,6 +1885,9 @@ gst_omx_video_dec_set_format (GstVideoDecoder * decoder,
|
|||
if (!gst_omx_video_dec_open (GST_VIDEO_DECODER (self)))
|
||||
return FALSE;
|
||||
needs_disable = FALSE;
|
||||
|
||||
/* The local port_def is now obsolete so get it again. */
|
||||
gst_omx_port_get_port_definition (self->dec_in_port, &port_def);
|
||||
} else {
|
||||
#if defined (USE_OMX_TARGET_RPI) && defined (HAVE_GST_GL)
|
||||
if (self->eglimage) {
|
||||
|
|
Loading…
Reference in a new issue