summaryrefslogtreecommitdiff
path: root/omx/gstomxvideoenc.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2017-07-24 12:31:37 +0200
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-08-08 10:40:47 -0400
commit973c6e109a5af69c5dcef56971e6a9c26fcff43f (patch)
treec89c3abf0504685350d95cb417829e0680d84d41 /omx/gstomxvideoenc.h
parent7a0949b7501ee226e6d59c75136b97cae8591380 (diff)
downloadgst-omx-973c6e109a5af69c5dcef56971e6a9c26fcff43f.tar.gz
omxvideoenc: factor out enable and disable code
No semantic change, just factor out the code enabling and disabling the component to their own functions. Makes the code easier to read as the set_format() method was already pretty big. Will also allow us to easily change the enabling logic. https://bugzilla.gnome.org/show_bug.cgi?id=785967
Diffstat (limited to 'omx/gstomxvideoenc.h')
-rw-r--r--omx/gstomxvideoenc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomxvideoenc.h b/omx/gstomxvideoenc.h
index 176ea99..265d4fe 100644
--- a/omx/gstomxvideoenc.h
+++ b/omx/gstomxvideoenc.h
@@ -58,6 +58,8 @@ struct _GstOMXVideoEnc
/* TRUE if the component is configured and saw
* the first buffer */
gboolean started;
+ /* TRUE if the ports where disabled after being activated the first time. */
+ gboolean disabled;
GstClockTime last_upstream_ts;