diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-03-11 11:47:42 +0100 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-03-11 16:30:17 +0100 |
commit | 5a60887fd4aef331ac5628b1ba45e3231a1472a1 (patch) | |
tree | 4e563f77c91819f9ce88b03943168de3de4ecc92 | |
parent | f7b05ae044643c8506acfcf35da1af5b62280f55 (diff) | |
download | gst-omx-5a60887fd4aef331ac5628b1ba45e3231a1472a1.tar.gz |
omxvideoenc: Wait until the Executing state is reached before passing buffers to the component
-rw-r--r-- | omx/gstomxvideoenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index e345af2..2c49750 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -1299,16 +1299,16 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder, OMX_StateExecuting) != OMX_ErrorNone) return FALSE; + if (gst_omx_component_get_state (self->enc, + GST_CLOCK_TIME_NONE) != OMX_StateExecuting) + return FALSE; + if (have_output_buffers) { if (gst_omx_port_populate (self->enc_out_port) != OMX_ErrorNone) return FALSE; if (gst_omx_port_mark_reconfigured (self->enc_out_port) != OMX_ErrorNone) return FALSE; } - - if (gst_omx_component_get_state (self->enc, - GST_CLOCK_TIME_NONE) != OMX_StateExecuting) - return FALSE; } /* Unset flushing to allow ports to accept data again */ |