summaryrefslogtreecommitdiff
path: root/omx/gstomxvideodec.c
diff options
context:
space:
mode:
authorSejun Park <sejun79.park@samsung.com>2017-05-10 12:38:39 +0900
committerJulien Isorce <jisorce@oblong.com>2017-07-05 10:23:01 +0100
commitebc9b4903cbdac2793c24b05a1bb7acc3b67fae5 (patch)
treeca682d18c06d57bfb91fe4811a5c77ad13d6e8cd /omx/gstomxvideodec.c
parenta3805116dff2f31e37436374a2719d6c4c584d73 (diff)
downloadgst-omx-ebc9b4903cbdac2793c24b05a1bb7acc3b67fae5.tar.gz
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
Diffstat (limited to 'omx/gstomxvideodec.c')
-rwxr-xr-x[-rw-r--r--]omx/gstomxvideodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 0f72c9c..1168eba 100644..100755
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -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) {