diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-02-12 11:41:43 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-02-12 11:41:43 +0100 |
commit | c3bcc43db7e8b2485aa937c9be55a359485208a4 (patch) | |
tree | 6bdb8ad84e66a845c142a86020c4594b59c8257b /omx/gstomx.h | |
parent | 58a093bc0c1a3c21bfb328b8b3abaa490ea733a3 (diff) | |
download | gst-omx-c3bcc43db7e8b2485aa937c9be55a359485208a4.tar.gz |
omx: Split enabling/disabling of port into sending the command and waiting for it
This allows to do anything necessary after sending the command to actually let it finish
Diffstat (limited to 'omx/gstomx.h')
-rw-r--r-- | omx/gstomx.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/omx/gstomx.h b/omx/gstomx.h index 7319a80..2e99b40 100644 --- a/omx/gstomx.h +++ b/omx/gstomx.h @@ -192,7 +192,8 @@ struct _GstOMXPort { gboolean settings_changed; gboolean flushing; gboolean flushed; /* TRUE after OMX_CommandFlush was done */ - gboolean enabled_changed; /* TRUE after OMX_Command{En,Dis}able was done */ + gboolean enabled_pending; /* TRUE after OMX_Command{En,Dis}able */ + gboolean disabled_pending; /* was done until it took effect */ /* Increased whenever the settings of these port change. * If settings_cookie != configured_settings_cookie @@ -304,6 +305,7 @@ OMX_ERRORTYPE gst_omx_port_deallocate_buffers (GstOMXPort *port); OMX_ERRORTYPE gst_omx_port_reconfigure (GstOMXPort * port); OMX_ERRORTYPE gst_omx_port_set_enabled (GstOMXPort * port, gboolean enabled); +OMX_ERRORTYPE gst_omx_port_wait_enabled (GstOMXPort * port, GstClockTime timeout); gboolean gst_omx_port_is_enabled (GstOMXPort * port); OMX_ERRORTYPE gst_omx_port_manual_reconfigure (GstOMXPort * port, gboolean start); |