From 73dc5bb199928b9df8baa4793a6b5cf41b56bf04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 19 Dec 2012 13:03:37 +0100 Subject: [PATCH] omx: Initialize struct version with the OMX version we compiled with --- omx/gstomx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/omx/gstomx.h b/omx/gstomx.h index 947651b..d10d2a6 100644 --- a/omx/gstomx.h +++ b/omx/gstomx.h @@ -59,9 +59,9 @@ G_BEGIN_DECLS #define GST_OMX_INIT_STRUCT(st) G_STMT_START { \ memset ((st), 0, sizeof (*(st))); \ (st)->nSize = sizeof (*(st)); \ - (st)->nVersion.s.nVersionMajor = 1; \ - (st)->nVersion.s.nVersionMinor = 1; \ - (st)->nVersion.s.nRevision = 2; \ + (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \ + (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \ + (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \ } G_STMT_END /* Different hacks that are required to work around -- 2.7.4