summaryrefslogtreecommitdiff
path: root/omx/gstomx.h
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-02-12 11:41:43 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-02-12 11:41:43 +0100
commitc3bcc43db7e8b2485aa937c9be55a359485208a4 (patch)
tree6bdb8ad84e66a845c142a86020c4594b59c8257b /omx/gstomx.h
parent58a093bc0c1a3c21bfb328b8b3abaa490ea733a3 (diff)
downloadgst-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.h4
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);