diff -r 80975da52420 -r 43d09473c595 khronosfws/openmax_al/src/ledarray/xaledarrayitf.c --- a/khronosfws/openmax_al/src/ledarray/xaledarrayitf.c Mon May 03 12:59:52 2010 +0300 +++ b/khronosfws/openmax_al/src/ledarray/xaledarrayitf.c Fri May 14 16:22:35 2010 +0300 @@ -19,9 +19,9 @@ #include #include #include "xaledarrayitf.h" -#ifdef _GSTREAMER_BACKEND_ -#include "XALEDArrayItfAdaptation.h" -#endif + +#include "xaledarrayitfadaptation.h" + #include "xathreadsafety.h" /* XALEDArrayItfImpl* GetImpl(XALEDArrayItf self) @@ -69,9 +69,9 @@ /* check is ligtMask mode changed */ if( impl->lightMask != lightMask ) { -#ifdef _GSTREAMER_BACKEND_ - ret = XALEDArrayItfAdapt_ActivateLEDArray( impl->adapCtx, lightMask ); -#endif + + ret = XALEDArrayItfAdapt_ActivateLEDArray( (XAAdaptationGstCtx*)impl->adapCtx, lightMask ); + if ( ret == XA_RESULT_SUCCESS ) { impl->lightMask = lightMask; @@ -152,9 +152,9 @@ } else { -#ifdef _GSTREAMER_BACKEND_ - ret = XALEDArrayItfAdapt_SetColor( impl->adapCtx, index, pColor); -#endif + + ret = XALEDArrayItfAdapt_SetColor( (XAAdaptationGstCtx*)impl->adapCtx, index, pColor); + if ( ret == XA_RESULT_SUCCESS ) { impl->color = *pColor; @@ -208,7 +208,7 @@ /***************************************************************************** * XALEDArrayItfImpl -specific methods *****************************************************************************/ -#ifdef _GSTREAMER_BACKEND_ + /* XALEDArrayItfImpl* XALEDArrayItfImpl_Create() * Description: Allocate and initialize LEDArrayItfImpl @@ -239,7 +239,7 @@ DEBUG_API("<-XALEDArrayItfImpl_Create"); return self; } -#endif + /* void XALEDArrayItfImpl_Free(XALEDArrayItfImpl* self) * Description: Free all resources reserved at XALEDArrayItfImpl_Create */