summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-10-27 10:38:42 (GMT)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-10-27 10:38:42 (GMT)
commita7434dec3dc4f1f5cb02d81d4678513ed37675f0 (patch)
tree8bccf1c2476811eac0230fdaa72d649ac286ee7a
parentf1fdf7068e3b469fe3aa88f3d5ce040d97773f4c (diff)
downloadgst-omx-a7434dec3dc4f1f5cb02d81d4678513ed37675f0.tar.gz
gst-omx-a7434dec3dc4f1f5cb02d81d4678513ed37675f0.tar.xz
omxvideodec: disable dec_out_port before tunneling it with the resizer
This is needed for tunneling to succeed. Without this patch, tunneling works the first time, because dec_out_port is not enabled yet, but from the second time you try to configure it, it fails.
-rw-r--r--omx/gstomxvideodec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 026bc51..f18df44 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -2255,6 +2255,14 @@ gst_omx_video_dec_reconfigure_output_port (GstOMXVideoDec * self)
if (err != OMX_ErrorNone)
goto no_res;
+ err = gst_omx_port_set_enabled (self->dec_out_port, FALSE);
+ if (err != OMX_ErrorNone)
+ goto no_res;
+
+ err = gst_omx_port_wait_enabled (self->dec_out_port, 1 * GST_SECOND);
+ if (err != OMX_ErrorNone)
+ goto no_res;
+
err =
gst_omx_component_setup_tunnel (self->dec, self->dec_out_port,
self->resizer, self->res_in_port);