diff options
Diffstat (limited to 'src/gallium/frontends/omx/bellagio/vid_dec.c')
-rw-r--r-- | src/gallium/frontends/omx/bellagio/vid_dec.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/frontends/omx/bellagio/vid_dec.c b/src/gallium/frontends/omx/bellagio/vid_dec.c index 8c7ca571771..a093fea85a9 100644 --- a/src/gallium/frontends/omx/bellagio/vid_dec.c +++ b/src/gallium/frontends/omx/bellagio/vid_dec.c @@ -36,20 +36,16 @@ #include <OMX_Video.h> -/* bellagio defines a DEBUG macro that we don't want */ -#ifndef DEBUG #include <bellagio/omxcore.h> -#undef DEBUG -#else -#include <bellagio/omxcore.h> -#endif #include "pipe/p_screen.h" #include "pipe/p_video_codec.h" #include "util/u_memory.h" #include "util/u_surface.h" #include "vl/vl_video_buffer.h" -#include "vl/vl_vlc.h" +#include "util/vl_vlc.h" + +#include "vl/vl_codec.h" #include "entrypoint.h" #include "vid_dec.h" @@ -198,6 +194,10 @@ static OMX_ERRORTYPE vid_dec_Constructor(OMX_COMPONENTTYPE *comp, OMX_STRING nam return OMX_ErrorInsufficientResources; screen = priv->screen->pscreen; + + if (!vl_codec_supported(screen, priv->profile, false)) + return OMX_ErrorInsufficientResources; + priv->pipe = pipe_create_multimedia_context(screen); if (!priv->pipe) return OMX_ErrorInsufficientResources; |