diff -r ebf79c79991a -r 5e8b14bae8c3 khronosfws/openmax_al/src/common/xastreaminformationitf.c --- a/khronosfws/openmax_al/src/common/xastreaminformationitf.c Fri Jun 25 17:36:03 2010 -0500 +++ b/khronosfws/openmax_al/src/common/xastreaminformationitf.c Fri Jul 09 16:43:35 2010 -0500 @@ -18,7 +18,7 @@ #include #include "xastreaminformationitf.h" -#include "xastreaminformationitfadaptation.h" + #include "xastreaminformationitfadaptationmmf.h" /* XAStreamInformationItfImpl* GetImpl @@ -56,20 +56,7 @@ return XA_RESULT_PARAMETER_INVALID; } - if (impl->adapCtx->fwtype == FWMgrFWGST) - { - ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); - if (ret == XA_RESULT_PARAMETER_INVALID) - { - DEBUG_API("<-XAStreamInformationItfImpl_QueryMediaContainerInformation"); - return ret; - } - ret = XAStreamInformationItfAdapt_QueryMediaContainerInformation( - impl->adapCtx, &(info->containerType), - &(info->mediaDuration), &(info->numStreams)); - XAAdaptationBase_ThreadExit(impl->adapCtx); - } - else + if (impl->adapCtx->fwtype == FWMgrFWMMF) { ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); if (ret == XA_RESULT_PARAMETER_INVALID) @@ -81,7 +68,6 @@ impl->adapCtx, &(info->containerType), &(info->mediaDuration), &(info->numStreams)); XAAdaptationBase_ThreadExit(impl->adapCtx); - ; } DEBUG_API("-adapCtx->fwtype == FWMgrFWGST) - { - ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); - if (ret == XA_RESULT_PARAMETER_INVALID) - { - DEBUG_API("<-XAStreamInformationItfImpl_QueryStreamType"); - return ret; - } - - ret = XAStreamInformationItfAdapt_QueryStreamType(impl->adapCtx, - streamIndex, domain); - - XAAdaptationBase_ThreadExit(impl->adapCtx); - } - else + if (impl->adapCtx->fwtype == FWMgrFWMMF) { ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); if (ret == XA_RESULT_PARAMETER_INVALID) @@ -128,8 +100,8 @@ streamIndex, domain); XAAdaptationBase_ThreadExit(impl->adapCtx); - ; - }DEBUG_API("-adapCtx->fwtype == FWMgrFWGST) - { - ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); - if (ret == XA_RESULT_PARAMETER_INVALID) - { - DEBUG_API("<-XAStreamInformationItfImpl_QueryStreamInformation"); - return ret; - } - - ret = XAStreamInformationItfAdapt_QueryStreamInformation( - impl->adapCtx, streamIndex, info); - - XAAdaptationBase_ThreadExit(impl->adapCtx); - } - else + if (impl->adapCtx->fwtype == FWMgrFWMMF) { ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); if (ret == XA_RESULT_PARAMETER_INVALID) @@ -174,7 +132,6 @@ impl->adapCtx, streamIndex, info); XAAdaptationBase_ThreadExit(impl->adapCtx); - ; } DEBUG_API("-adapCtx->fwtype == FWMgrFWGST) - { - ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); - if (ret == XA_RESULT_PARAMETER_INVALID) - { - DEBUG_API("<-XAStreamInformationItfImpl_QueryStreamName"); - return ret; - } - - ret = XAStreamInformationItfAdapt_QueryStreamName(impl->adapCtx, - streamIndex, pNameSize, pName); - - XAAdaptationBase_ThreadExit(impl->adapCtx); - } - else + if (impl->adapCtx->fwtype == FWMgrFWMMF) { ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); if (ret == XA_RESULT_PARAMETER_INVALID) @@ -223,8 +166,8 @@ streamIndex, pNameSize, pName); XAAdaptationBase_ThreadExit(impl->adapCtx); - ; - }DEBUG_API("-adapCtx, - numStreams, activeStreams); - - XAAdaptationBase_ThreadExit(impl->adapCtx); - } - else - { - ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); - if (ret == XA_RESULT_PARAMETER_INVALID) - { - DEBUG_API("<-XAStreamInformationItfImpl_QueryActiveStreams"); - return ret; - } - ret = XAStreamInformationItfAdaptMMF_QueryActiveStreams( impl->adapCtx, numStreams, activeStreams); XAAdaptationBase_ThreadExit(impl->adapCtx); - ; } DEBUG_API("-adapCtx->fwtype == FWMgrFWGST) - { - ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); - if (ret == XA_RESULT_PARAMETER_INVALID) - { - DEBUG_API("<-XAStreamInformationItfImpl_SetActiveStream"); - return ret; - } - - ret = XAStreamInformationItfAdapt_SetActiveStream(impl->adapCtx, - streamNum, active, commitNow); - - XAAdaptationBase_ThreadExit(impl->adapCtx); - } - else + if (impl->adapCtx->fwtype == FWMgrFWMMF) { ret = XAAdaptationBase_ThreadEntry(impl->adapCtx); if (ret == XA_RESULT_PARAMETER_INVALID) @@ -343,7 +257,6 @@ streamNum, active, commitNow); XAAdaptationBase_ThreadExit(impl->adapCtx); - ; } DEBUG_API("-