summaryrefslogtreecommitdiff
path: root/modules/omx/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/omx/module.c')
-rw-r--r--modules/omx/module.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/omx/module.c b/modules/omx/module.c
index b9d04cf..587d4ac 100644
--- a/modules/omx/module.c
+++ b/modules/omx/module.c
@@ -30,15 +30,17 @@ static struct vidisp* vid;
static struct omx_state omx;
+
static void destructor(void *arg)
{
struct vidisp_st *st = arg;
omx_display_disable(st->omx);
}
+
int omx_vidisp_alloc(struct vidisp_st **vp, const struct vidisp* vd,
- struct vidisp_prm *prm, const char *dev, vidisp_resize_h *resizeh,
- void *arg)
+ struct vidisp_prm *prm, const char *dev,
+ vidisp_resize_h *resizeh, void *arg)
{
struct vidisp_st *st;
@@ -105,6 +107,7 @@ int omx_vidisp_display(struct vidisp_st *st, const char *title,
return 0;
}
+
static int module_init(void)
{
if (omx_init(&omx) != 0) {
@@ -116,6 +119,7 @@ static int module_init(void)
omx_vidisp_alloc, NULL, omx_vidisp_display, NULL);
}
+
static int module_close(void)
{
/* HACK: not deinitializing OMX because of a hangup */