omxvideodec: factor out enable and disable code
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 24 Jul 2017 10:31:37 +0000 (12:31 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 8 Aug 2017 14:40:47 +0000 (10:40 -0400)
commit352184dd0920a12838345fde49661b497845e84c
tree90f37b7bb52939e9d2e4c5c35a85b516f91210f7
parent973c6e109a5af69c5dcef56971e6a9c26fcff43f
omxvideodec: 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
omx/gstomxvideodec.c
omx/gstomxvideodec.h