diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2017-07-24 12:31:37 +0200 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-08-08 10:40:47 -0400 |
commit | 973c6e109a5af69c5dcef56971e6a9c26fcff43f (patch) | |
tree | c89c3abf0504685350d95cb417829e0680d84d41 /omx/gstomxvideoenc.h | |
parent | 7a0949b7501ee226e6d59c75136b97cae8591380 (diff) | |
download | gst-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.h | 2 |
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; |